Karthick
Karthick

Reputation: 826

ASP.NET Vnext Tag Helpers for Areas

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.?

Upvotes: 0

Views: 1258

Answers (2)

Christoph Br&#252;ckmann
Christoph Br&#252;ckmann

Reputation: 1373

If you use ReSharper it's IntelliSense could also override the Tag Helpers. I described my solution in this post.

Upvotes: 0

Karthick
Karthick

Reputation: 826

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

Upvotes: 7

Related Questions