
ASP.NET Core 5 for Beginners
By :

Razor Pages is another web framework for building ASP.NET Core web applications. It was first introduced with the release of ASP.NET Core 2.0 and became the default web application template for ASP.NET Core.
To better understand the Razor Pages approach, Figure 4.23 provides a high-level diagram of the process that describes the HTTP request and response flow.
Figure 4.23 – Razor Pages request and response flow
If you've worked with ASP.NET Web Forms before, or any web framework that follows a page-centric approach, then you should find Razor Pages familiar. Unlike MVC, where requests are handled in the controller, the routing system in Razor Pages is based on matching URLs to the physical file path. In other words, all requests default to the root folder, which is named Pages
by default.
The route collection will then be constructed based on the file and folder paths within the...