How to route legacy type urls in ASP.NET MVC
问题 Due to factors outside my control, I need to handle urls like this: http://www.bob.com/dosomething.asp?val=42 I would like to route them to a specific controller/action with the val already parsed and bound (i.e. an argument to the action). Ideally my action would look like this: ActionResult BackwardCompatibleAction(int val) I found this question: ASP.Net MVC routing legacy URLs passing querystring Ids to controller actions but the redirects are not acceptable. I have tried routes that parse