Developing with MVC/Razor

Visual Studio supports an alternative to building your application using Web Forms. This alternative is based on the Model-View-Controller (MVC) design pattern and the Razor syntax. The purpose of this pattern is to separate the application’s logic and data (model), its user interface display (view), and the code that helps the user interact with the UI and the data (controller).

Developers choose MVC because it gives them direct access to the HTML and CSS, allowing them to more easily work with responsive design and JavaScript frameworks. MVC also better supports test-driven development because the views are just markup, and all their logic is in controller classes that can be tested independently of the view markup. ...

Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.