摘要: 去天堂玩~~! @Url.Action("delete", "BlogUser", new { id=1 }) @Url.Action("add", new {controller="cate",name="xiaobai",id=1 }) @Url.Content("~/cate/index") @Url.HttpRouteUrl("Default1",new {controller="home",action="index 阅读全文
posted @ 2014-04-01 02:34 bl84757922 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: MVC方法之间共享数据 阅读全文
posted @ 2014-04-01 02:27 bl84757922 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 路由约束:正则表达式constraints routes.MapRoute( name: "Default2", url: "gz-{controller}/{action}/{name}/{id}", defaults: new { controller = "Home", action = "HtmlHelper"}, constraints: new { id="[0-9]+" }//路由约束 namespaces: new string[1] { "... 阅读全文
posted @ 2014-04-01 02:24 bl84757922 阅读(196) 评论(0) 推荐(0) 编辑