MVC利用URLRoute实现伪静态
routes.MapRoute(
"Default", // Route name
"{controller}/{action}.html", // URL with parameters
new { controller = "Portal", action = "Index", id = UrlParameter.Optional }
); //首页伪静态
routes.MapRoute(
"ArticleList", // Route name
"{controller}/{action}/{typeId}.html", // URL with parameters
new { controller = "Article", action = "List", typeId = UrlParameter.Optional }
); // 文章类型列表伪静态
routes.MapRoute(
"ArticleDetail", // Route name
"{controller}/{action}/{id}.html", // URL with parameters
new { controller = "Article", action = "Detail",id = UrlParameter.Optional }
); // 文章详情页伪静态
routes.MapRoute(
"JobList", // Route name
"{controller}/{action}/{id}.html", // URL with parameters
new { controller = "Job", action = "Detail", id = UrlParameter.Optional }
); // TODO
routes.MapRoute(
"JobDetail", // Route name
"{controller}/{action}/{id}.html", // URL with parameters
new { controller = "Article", action = "Detail", id = UrlParameter.Optional }
); // TODO
阿里云: www.aliyun.com
华赐软件: www.huacisoft.com
C#开源社区: www.opencsharp.net
清泓美肤苑: 清泓美肤苑
bootstrap权限管理系统: Asp.Net Mvc3 bootstrap权限管理系统