O'Reilly logo

Microsoft® Visual Studio® 2010 Unleashed by Lars Powers, Mike Snell

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

Understanding ASP.NET MVC

The ASP.NET MVC application template works to de-couple your data and business logic (the model) from the display of that information (the view). It also places the code to handle interaction for the view and the model into a separate class (the controller). This separation changes the way you write web pages in ASP.NET.

With ASP.NET MVC, you can still create.aspx pages or .ascx controls to define the layout of your user interface. However, instead of writing code in the page’s code-behind file, you use a controller class to manage the user processing. In addition, the code to define your domain objects and work with the database stays separate from the controller. Figure 17.69 shows an illustration of the ASP.NET MVC ...

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