路由配置是这样的: routes.MapRoute(
"ParentHomePaging",
"t-{categoryid}/p{page}.html",
new { controller = "Category", action = "Index", categoryid = UrlParameter.Optional, page = UrlParameter.Optional },
new { categoryid = @"^(\d*)$", page = @"^(\d*)$"}
);routes.MapRoute(
"SeriesSelSPaging",
"c-{categoryid}/{brandid}-p{page}.html",
new { controller = "Category", action = "Index", categoryid = UrlParameter.Optional, brandid = UrlParameter.Optional, page = UrlParameter.Optional },
new { categoryid = @"^(\d*)$", brandid = @"^(\d*)$", page = @"^(\d*)$" }
);为什么不管是
http://localhost:1358/t-14/1320-p1.html或者http://localhost:1358/c-14/1320-p1.html
总是进入如第一个路由呢?
"ParentHomePaging",
"t-{categoryid}/p{page}.html",
new { controller = "Category", action = "Index", categoryid = UrlParameter.Optional, page = UrlParameter.Optional },
new { categoryid = @"^(\d*)$", page = @"^(\d*)$"}
);routes.MapRoute(
"SeriesSelSPaging",
"c-{categoryid}/{brandid}-p{page}.html",
new { controller = "Category", action = "Index", categoryid = UrlParameter.Optional, brandid = UrlParameter.Optional, page = UrlParameter.Optional },
new { categoryid = @"^(\d*)$", brandid = @"^(\d*)$", page = @"^(\d*)$" }
);为什么不管是
http://localhost:1358/t-14/1320-p1.html或者http://localhost:1358/c-14/1320-p1.html
总是进入如第一个路由呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货