首页 > Web开发 > 详细

MVC超链接

时间:2014-08-25 19:19:04      阅读:303      评论:0      收藏:0      [点我收藏+]
<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>Login</title>
</head>
<body>
    <div>

        <a href="/Login/Index">跳转到Login控制器下的Index视图</a><br />

        <a href="<%:Url.Action("Index")%>">跳转到相同控制器下的Index视图</a><br />

        <a href="<%:Url.Action("Index","Login")%>">跳转到Login控制器下的Index视图</a><br />

     
      
      <%--跳转到相同控制器下的Index视图--%>
      <%: Html.ActionLink("跳转到相同控制器下的Index视图", "Index")%>"<br />

      <%:Html.ActionLink("跳转到Login控制器下的Index视图", "Index", "Login")%>

      <%:Html.ActionLink("跳转到Login控制器下的Index视图", "Index", "Login")%>
    </div>
</body>
</html>

MVC超链接

原文:http://blog.csdn.net/fanbin168/article/details/38824323

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!