Razor Pages are a new feature of ASP.NET Core 2.0 that brings a simple page based development model to .NET Core. While they are similar to Razor Views in MVC, they have interesting differences. Essentially, they are the preferred way to generate server-side HTML content in the Microsoft MVC world.
This session explores how the Pages framework operates and how it fits into the standard ASP.NET Core MVC infrastructure. We’ll look at scenarios where Razor pages are a good choice and discuss when it is best stick with MVC. You’ll see how all your favorite concepts (like Model Binding) work in this new system.
You will learn:
- Understand how Razor Pages fit into the ASP.NET MVC Core framework
- How handlers work in Razor code