O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required