I define routes in my global.asax, for example:
routes.MapRoute(
"Default",
"{controller}/{action}/{id}",
new { controller = "Home", action = "Index", id = "" }
);
Given the URL:
/somecontroller/someaction/3
Is it possible to determine which route it will map to and get the corresponding route object with the name, url template and default values?
thanks
source
share