About 44,200,000 results
Open links in new tab
  1. Razor Pages route and app conventions in ASP.NET Core

    Aug 28, 2025 · Learn how to use page route and app model provider conventions to control page routing, discovery, and processing in Razor Pages apps. To specify a page route, add route …

  2. Razor Pages Routing

    Mar 17, 2024 · From ASP.NET Core 2.1 onward, you can use the template to specify an alternative route for a page that has no relationship with the file name. The override route …

  3. Right way of using asp-page and asp-route in asp.net core ...

    Apr 26, 2020 · And you don't need to add asp-page="category" in Pages/category/Index.cshtml, just delete this attribute in this page. Here is my test result: Sign up to request clarification or …

  4. Razor Pages architecture and concepts in ASP.NET Core

    Aug 27, 2025 · The routing constraint "{id:int}" tells the page to accept requests to the page that contain int route data. If a request to the page doesn't contain route data that can be converted …

  5. ASP.NET Core Razor Pages Application - Dot Net Tutorials

    In this article, I am going to show you how to develop ASP.NET Core Razor Pages Application step-by-step with an example. Razor Pages are Introduced as part of .NET Core 2.0. It is a …

  6. CRUD Made Easy: Building Dynamic Apps with htmx and ASP.NET ...

    Apr 1, 2025 · We’re going to handle all interactions dynamically without reloading the page. Start by creating a new ASP.NET Razor Pages project: Add htmx to your _Layout.cshtml: Let’s set …

  7. Razor Pages architecture and concepts in ASP.NET Core

    Sep 5, 2025 · Learn the architecture, concepts, and patterns of Razor Pages in ASP.NET Core for building page-focused web applications.

  8. ASP.NET Page Models and Request Handling - Codecademy

    When a page model receives a POST request, its OnPost() or OnPostAsync() method is invoked. This typically happens when a user submits a form on the page model’s corresponding view …

  9. Routing in Razor Pages - mikesdotnetting.com

    Jul 11, 2017 · Rule number one is that Razor Pages need a root folder. By default, this folder is named "Pages" and is located in the root folder of the web application project. You can …

  10. asp.net core - Razor Pages routing with @page - Stack Overflow

    Sep 8, 2024 · Updating the @page directive in the Index.cshtml page to @page "{id:int?}" allows for routing to /index and /index/1, for example. Unfortunately the link to the Home page, the …