Using the .net core anchor tag helper with Razor Pages and areas

With Razor Pages, the anchor tag helper is used somewhat differently than with MVC. A typical anchor tag helper for MVC is: <a asp-controller="Home" asp-action="Products">Our Products</a> In this case, you specify the controller as the Home controller and the handler method in the controller as “Products”. Razor Page Model In the case of a Razor […]

Read More…

Using the the partial tag helper with models in .NET Core 2.1 and later

.Net Core 2.1 introduces the partial tag helper.  This post shows two useful ways to use this tag helper. Example to display sample websites This example uses a model to display a list of sample websites that have been produced by your company. We require the sample company name, some short text about the company, […]

Read More…