routes.MapRoute("catchallroute", "{controller}/{action}/{*extrastuff}", new QueryRouteHandler);
我在网上看到关于MVC路由匹配多参数写法如果
实现没看懂。
QueryRouteHandler 这东西是什么
求教
MVC路由匹配多参数写法
我在网上看到关于MVC路由匹配多参数写法如果
实现没看懂。
QueryRouteHandler 这东西是什么
求教
MVC路由匹配多参数写法
"news",
"news.ashx/newlist/{year}/{day}",
new { controller = "news", action = "newlist", year = "year", day = "year" }
); routes.MapRoute(
"Default", // Route name
"{controller}.ashx/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);