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 new alternative in ASP.NET Core 2.0 and later, a page-based programming model that makes building web UI easier and more productive. We recommend you try the Razor Pages tutorial before the MVC 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