• Adam Freeman


In Chapter 17, 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, I focus and clarify that knowledge. I begin by showing you how the MVC Framework handles ViewResults using view engines, including demonstrating how to create a custom view engine. Next, I will describe techniques for working effectively with the built-in Razor View Engine. Then I will cover how to create and use partial views, child actions, and Razor sections, which are all essential topics for effective MVC development. Table 20-1 provides the summary for this chapter.


Action Method Child Action Code Fragment Visual Studio Partial View 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Adam Freeman 2013

Authors and Affiliations

  • Adam Freeman
    • 1

Personalised recommendations