ASP.NET Vnext标签助手的领域 [英] ASP.NET Vnext Tag Helpers for Areas
问题描述
我可以使用< A HREF =/区/控制器/动作'> < / A>
在asp.net vnext只是想知道我们是否可以使用标签佣工像<一个ASP控制器=ControllerNameASP-行动=ActionNameASP-面积=AREANAME方式>
来重定向到特定文件中的区域
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.
&LT;一个ASP的路由面积=AREANAMEASP-控制器=ControllerNameASP-行动=ActionName&GT; &LT; / A&GT;
<一个href=\"https://github.com/aspnet/Mvc/blob/28ca45e0779960b877f890cbff36f267603174fd/test/WebSites/MvcTagHelpersWebSite/Views/Shared/Customer.cshtml\">github链接
这篇关于ASP.NET Vnext标签助手的领域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!