Anchor Tag Helper in ASP.NET Core | Microsoft Learn
learn.microsoft.com › en-us › aspnetJun 3, 2022 · The asp-route attribute is used for creating a URL linking directly to a named route. Using routing attributes, a route can be named as shown in the SpeakerController and used in its Evaluations action: C# [Route ("/Speaker/Evaluations", Name = "speakerevals")] In the following markup, the asp-route attribute references the named route: CSHTML
AspNetCore.Docs/anchor-tag-helper.md at main - Github
github.com › dotnet › AspNetCoreasp-page-handler. The asp-page-handler attribute is used with Razor Pages. It's intended for linking to specific page handlers. Consider the following page handler: [!code-csharp] The page model's associated markup links to the OnGetProfile page handler. Note the On<Verb> prefix of the page handler method name is omitted in the asp-page-handler ...