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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access