Add a Razor Page in Visual Studio

Apply your knowledge of Razor Syntax in Visual Studio

In this video, you’ll learn how to add pages to an existing ASP.NET Razor Pages application on your own computer. If you don’t already have Visual Studio, follow this set-up article.

Here’s a quick recap of the skills covered:

  • Add a Razor Page (with page model) to an existing app using the “Add…” feature in Visual Studio
  • Use default routing to access the newly created page
  • Find and edit the layout file
  • Pass data from a Razor Page to the layout file using ViewData

When you feel comfortable with these, you’re ready to move on!