I have an asp.net mvc 2 application. I get a page with the url http://localhost/Object/ChangeObject/108?MtRid=216584. I want to route it like this: http://localhost/Object/ChangeObject.
How to write a route for this?
I have an asp.net mvc 2 application. I get a page with the url
Share
There are more than one way to do this:
Try to modify the methode “application_beginrequest” of “Global.asax” This method is called every time some request is made to the website.
Take a look at this example
URL Routing – By adding custom URL Route mapping rules before the default one as described in this article