May 2012
Intermediate to advanced
440 pages
13h 54m
English
Views are a critical part of an ASP.NET MVC application—they provide a clean way to separate presentation concerns from the logic in your application. In the last chapter, we looked briefly at some simple views written with the Razor templating engine for our Guestbook application, and we ended the chapter by looking at how layouts can be used to apply a standard look and feel to all pages in an application.
In this chapter, we’ll look at views in a bit more depth—we’ll examine how ASP.NET MVC renders views and look at the different options available for passing data to views. ...