© Adam Freeman 2017

Adam Freeman, Pro ASP.NET Core MVC 2, https://doi.org/10.1007/978-1-4842-3150-0_21

21. Views

Adam Freeman

(1)London, 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 ...

Get Pro ASP.NET Core MVC 2 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.