Bewerken

Delen via


Tutorial: Create a Razor Pages web app with ASP.NET Core

Note

This isn't the latest version of this article. For the current release, see the .NET 9 version of this article.

Warning

This version of ASP.NET Core is no longer supported. For more information, see .NET and .NET Core Support Policy. For the current release, see the .NET 8 version of this article.

Important

This information relates to a pre-release product that may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

For the current release, see the .NET 9 version of this article.

This series of tutorials explains the basics of building a Razor Pages web app.

For a more advanced introduction aimed at developers who are familiar with controllers and views, see Introduction to Razor Pages in ASP.NET Core.

If you're new to ASP.NET Core development and are unsure of which ASP.NET Core web UI solution will best fit your needs, see Choose an ASP.NET Core UI.

This series includes the following tutorials:

  1. Create a Razor Pages web app
  2. Add a model to a Razor Pages app
  3. Scaffold (generate) Razor pages
  4. Work with a database
  5. Update Razor pages
  6. Add search
  7. Add a new field
  8. Add validation

At the end, you'll have an app that can display and manage a database of movies.

Sample page of sample app

Sample edit validation of sample app