O'Reilly logo

ASP.NET MVC 4 in Action: Revised edition of ASP.NET MVC 2 in Action by Foreword by Phil Haack, Jeffrey Palermo, Jimmy Bogard, Eric Hexter, Matthew Hinze, and Jeremy Skinner

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

Chapter 3. View fundamentals

 

This chapter covers
  • 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. ...

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