0
我已经注册了这条路线:路线犯规注册
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Views", "View/{RouteID}",
new { controller = "BookingViewsPublicController",
action = "Index", RouteID = "" }
);
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
,我不能得到像http://localhost:49764/View/Foo工作,我还是得去/ BookingViewsPublic /路由ID =美孚为它工作?什么可能是错的?
/M
好听!有时我们不需要寻找复杂的解决方案:) – indyfromoz 2009-11-13 18:32:49