O'Reilly logo

Pro ASP.NET MVC 4, Fourth Edition by Adam Freeman

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 18

Image

Views

In Chapter 15, you saw how action methods can return ActionResult objects. As you learned, the most commonly used action result is ViewResult, which causes a view to be rendered and returned to the client.

You have seen views being used in many examples already, so you know roughly what they do. In this chapter, we will focus and clarify that knowledge. We will begin by showing you how the MVC Framework handles ViewResults using view engines, including demonstrating how to create a custom view engine. Next, we will describe techniques for working effectively with the built-in Razor View Engine. Then we will cover how to create ...

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