asp.net mvc routing: how to use default action but non-default parameter?
问题 I'm rewriting the question, as the answers so far show me that I have not defined it good enough. I'll leave the original question for reference below. When you set up your routing you can specify defaults for different url/route parts. Let's consider example that VS wizard generates: routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "DefaultPage", action = "Index", id = UrlParameter.Optional } // Parameter defaults In this