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 ...
Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.