Skip to Main Content
Beginning ASP.NET MVC 4
book

Beginning ASP.NET MVC 4

by José Rolando Guay Paz
June 2013
Beginner content levelBeginner
300 pages
7h 58m
English
Apress
Content preview from Beginning ASP.NET MVC 4

CHAPTER 5

image

Views

In Chapter 4 you saw how action methods return an ActionResult. One of the most commonly used types of action results in an ASP.NET MVC application is the ViewResult. When you return a ViewResult from an action method, it indicates that ASP.NET MVC should invoke a view page to render HTML back to the client browser.

You store view pages in the Views directory inside the application. Views often include server-side code to produce the final HTML. When you create a view, you need to specify the view engine that will be used to process server-side code. Out of the box, ASP.NET MVC includes two view engines:

  • ASPX view engine: The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
Professional ASP.NET MVC 4

Professional ASP.NET MVC 4

Jon Galloway, Phil Haack, Brad Wilson, K. Scott Allen, Scott Hanselman
Programming ASP.NET MVC 4

Programming ASP.NET MVC 4

Jess Chadwick, Todd Snyder, Hrusikesh Panda
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9781430257523Purchase book