I m writing an httpModule to intercept the request that is coming to ASP.NET MVC application. Is there an easy way to figure out what part of the URL constitutes area, controller, action and the actual value.
e.g. www.mysite.com/category/products/GetDetails/101
category: area products: controller GetDetails: action 101: productId
Is there an easy way to get back from RouteEngine or something...
ControllerContext.RouteData
Should help you out, the answer here too.