views:

29

answers:

0

Hi,

I have a string contains a URL. How do I check which route in RouteTable.Routes matches my url?

I used reflector to investigate how it is done in Phil Haack’s RouteDebugger. I found it internally works based on HttpContext. I don’t have the HttpContext as url is not requested yet.

Thank you, Max