asp.net路由不起作用

时间:2015-09-18 17:11:31

标签: asp.net asp.net-mvc-routing url-routing

我有下一条路线:

routes.MapRoute(
    "CatalogFilter",
    "{url}Catalog.aspx/{fltr}",
    new { controller = "Catalog", action = "Index", page = 1 }
);

所以链接与该路线不匹配:http://localhost:63515/MotorOilCatalog.aspx?fltr=156而不是http://localhost:63515/MotorOilCatalog.aspx/156

我尝试删除所有其他路由以确保没有明确或冲突的路由,但它也不起作用。

我安装了Phil Haacks" Route Debugger"它显示: list of routes

0 个答案:

没有答案
相关问题