Loading

摘要: 1.Html.ActionLink();@Html.ActionLink("About this application", "About") //产生连接到同一controller的Action方法@Html.ActionLink("About this application", "About", "MyController") //产生连接到另一个controller的方法。//带入其他参数@Html.ActionLink("About this application" 阅读全文
posted @ 2013-03-24 12:12 青岛欧姆网络科技 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1. 指定Controller、ActionRoutes.MapRoute("","{controller}/{action}");匹配:http://www.xxx.com/home/Index.2.带默认参数指定Routes.MapRoute("","{controller}/{action}",new {controller="Home",action="Index"});匹配:http://www.xxx.com/home/Index.http://www.xxx.c 阅读全文
posted @ 2013-03-24 10:46 青岛欧姆网络科技 阅读(532) 评论(0) 推荐(1) 编辑