Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 3: Views

Chapter 3

Views

— By Phil Haack

What's in This Chapter?

  • The purpose of Views
  • How to specify a View
  • All about strongly typed Views
  • Understanding View Models
  • How to add a View
  • Using Razor
  • How to specify a Partial View
  • Understanding the View Engine

Developers spend a lot of time focusing on crafting well-factored controllers and model objects, and for good reason because clean well-written code in these areas form the basis of a maintainable web application.

But when a user visits your web application in a browser, none of that work is visible. A user's first impression and entire interaction with your application starts with the view.

The view is effectively your application's ambassador to the user—representing your application to the user and providing the basis on which the application is first judged.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial