0

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

4

2 に答える 2

7

最後に、うまく機能する次のリンクから答えを得ました。

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

github リンク

于 2015-06-04T08:32:28.947 に答える
0

ReSharper を使用する場合、IntelliSense はタグ ヘルパーをオーバーライドすることもできます。この投稿で私の解決策を説明しました。

于 2016-11-16T10:55:06.853 に答える