O'Reilly logo

ASP.NET Core Essentials by Shahed Chowdhuri

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

Implementing views

Views in MVC make up the presentation layer, the user interface that holds on-screen elements for the user to interact with. The UI in any web application can get busy really quickly, either filled with too many items at the same time, or burdened with business logic and unnecessary code. The goal of MVC's separation of concerns aims to help developers create well-architected applications where the views are lightweight and validation is performed in the model layer, which is connected to the view with binding.

Basic views

Similar to how we added a basic controller, we will create a basic view and gradually add code to it. Just as you can create a more complete controller with scaffolding, you can also create a more complete view ...

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