© Adam Freeman 2016

ADAM FREEMAN, Pro ASP.NET Core MVC , 10.1007/978-1-4842-0397-2_21


Adam Freeman

(1)Milton Keynes MK6 3PA, UK

In Chapter 17, you saw how action methods can return ViewResult objects, which tells MVC to render a view and return an HTML response to the client.

Throughout this book, you have seen views being used in many examples already, so you know roughly what they do, but I dig into the details in this chapter.

I begin by showing you how MVC handles ViewResult objects using view engines, including demonstrating how to create a custom view engine. I also describe techniques for working effectively with the built-in Razor view engine, including the use of partial views and layout sections, which are essential topics for ...

Get Pro ASP.NET Core MVC, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.