MVC3 Routing Basics
问题 I am learning MVC routing. Hope my question doesn't look silly, and please help :) public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); Msdn reference says it takes a String, String, Object, so I try to make a small change (added a "my" in front