摘要:
1.Html.ActionLink();@Html.ActionLink("About this application", "About") //产生连接到同一controller的Action方法@Html.ActionLink("About this application", "About", "MyController") //产生连接到另一个controller的方法。//带入其他参数@Html.ActionLink("About this application" 阅读全文
摘要:
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 阅读全文