ASP.NET Vnext标签助手的领域 [英] ASP.NET Vnext Tag Helpers for Areas

查看:171
本文介绍了ASP.NET Vnext标签助手的领域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用< 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆