c#的MVC模式中 a标签中href怎么跳转视图中的另一个页面
问题描述:
MVC模式中 a标签中href怎么跳转视图中的另一个页面
答
@Html.ActionLink("链接显示的内容", "action名称", "Controller名称")
@Html.ActionLink("链接显示的内容", "和当前页面所在Controller中的action名称")
<a href="/Controller名称/action名称">跳转</a>