Chapter 3. View fundamentals
- Providing data to the view
- Using strongly typed views
- Understanding view helper objects
- Developing with templates
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. ...