Multiple optional parameters in MVC is not working
问题 My requirement is to provide optional parameters to urls. urls should be like the. http://test.com/118939 http://test.com/118939/test/2000/ I have written following routes public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); routes.MapRoute( "FAQDefault", "FAQ", new { controller = "FAQ", action = "Default" }); routes.MapRoute(null, "{id}", new { controller =