Create a web app with ASP.NET Core MVC on Windows with Visual Studio

This tutorial teaches ASP.NET Core MVC web development with controllers and views. Razor Pages is a feature of the ASP.NET Core MVC framework that makes building and testing web UI easier and more productive. You can use Razor pages alongside controllers and views in the same project.

We recommend you try the Razor Pages tutorial before the MVC/Controller/Views version. The Razor Pages tutorial:

  • Is the preferred approach for new application development.
  • Is easier to follow.
  • Covers more features.

If you choose this tutorial over the Razor Pages version, let us know why in this GitHub issue.

There are 3 versions of this tutorial:

The tutorial series includes the following:

  1. Get started
  2. Add a controller
  3. Add a view
  4. Add a model
  5. Work with SQL Server LocalDB
  6. Controller methods and views
  7. Add search
  8. Add a new field
  9. Add validation
  10. Examine the Details and Delete methods