I may use <a href='/Area/Controller/action'> </a>
in asp.net vnext but just want to know whether we can use tag helpers like
<a asp-controller="ControllerName" asp-action="ActionName" asp-area="AreaName">
to redirect to the specific file in the area.
Will any one guide me how to redirect to a file in area using tag helpers.?
Finally I got the answer from the following link which works well.
<a asp-route-area="AreaName" asp-controller="ControllerName" asp-action="ActionName"> </a>
Christoph Brückmann
If you use ReSharper it's IntelliSense could also override the Tag Helpers. I described my solution in this post.
来源:https://stackoverflow.com/questions/30625817/asp-net-vnext-tag-helpers-for-areas