ASP.NET Vnext Tag Helpers for Scopes

I can use <a href='/Area/Controller/action'> </a> in asp.net vnext, but just want to know if we can use tag helpers like <a asp-controller="ControllerName" asp-action="ActionName" asp-area="AreaName"> to redirect to a specific file in that area.

Can someone tell me how to redirect a file to an area using helper tags.?

0
source share
2 answers

Finally, I got the answer from the following link, which works well.

<a asp-route-area="AreaName" asp-controller="ControllerName" asp-action="ActionName"> </a>

github link

+7
source

If you use ReSharper, IntelliSense can also override tag tags. I described my decision in this post.

0
source

Source: https://habr.com/ru/post/1258902/


All Articles