mvc 做伪静态另外一个方法

摘要: 上一篇文章介绍如何做伪静态如下: routes.MapRoute(//两个参数不带动作 "TwoparameterNoAction", "{controller}/{CurrentID}/{ClassID}.html", new { controller = @"[a-zA-Z]", action = "Index", CurrentID = @"[\d]{0,3}", ClassID =UrlParameter.Optional } );这样就能匹配:http://www.163.com/Ho 阅读全文
posted @ 2013-01-25 09:03 ~紫鱼~ 阅读(3402) 评论(0) 推荐(1)