//产品列表 routes.MapRoute("zclist", "zc/list-{typeid}-{catid}-{product_state}-{bankid}-{orderby}-{page}.html", new { controller = "Cr", action = "List", typeid = 0, catid = 0, product_state = 0, bankid = 0, orderby = 0, page = 1 }, new { typeid = @"\d+", catid = @"\d+", product_state = @"\d+", bankid = @"\d+", orderby = @"\d+", page = @"\d+" }); //产品列表 routes.MapRoute("zclist1", "zhongchou/list-{catid}.html", new { controller = "Cr", action = "List", typeid = 0, catid = @"\d+", product_state = 0, bankid = 0, orderby = 0, page = 1 }); routes.MapRoute("zclist2", "zhongchou/list-{catid}-{page}.html", new { controller = "Cr", action = "List", typeid = 0, catid = @"\d+", product_state = 0, bankid = 0, orderby = 0, page = @"\d+" });
前面的两个通过了测试,最后一个没法通过测式,提示catid不能为null,请高人指点
把你测试的URL列举出来。。。