Razor Pages
Razor Pages is an ASP.NET Core page-focused framework for building server-rendered web apps with clean routing and handlers.
Razor Pages is a page-focused way to build server-rendered sites in ASP.NET Core. Each page has its own view (.cshtml) and optional page model (.cshtml.cs), making small-to-mid web apps easy to structure.
- Great for forms and content pages
- Uses page handlers like
OnGet/OnPost - Plays nicely with DI, EF Core and validation