摘要: 一、根据路由系统生成友好的URLActionLink(this HtmlHelper htmlHelper, string linkText, string actionName);会根据当前的路由指定的Controller来为自己的URL指定controller值。特殊的如下://路由设置routes.MapRoute("NewRoute", "App/Do{action}",new { controller = "Home" });//ActionLink的代码如下:@Html.ActionLink("测试", 阅读全文
posted @ 2013-04-09 22:00 haiziguo 阅读(14193) 评论(2) 推荐(2) 编辑