Views are the actual output of an application which are delivered to the user. They are what users actually see on the screen when they access your application. All components, including menus, input elements, dialog boxes, and everything else the user sees come from your views. If you do not provide a good user experience when accessing your application, users will not care how great your application is. So, views play a critical role when building an ASP.NET MVC application. Separating views from a controller allows the HTML design process to be separate from the logic. It is also beneficial in terms of unit testing the controller.
By the end of this chapter, you will be able to:
- Explain the purpose of the view engine and the Razor view engine
- Program in the Razor view engine and use different programming constructs
- Work with the layout in ASP.NET Core and its features...