views:

251

answers:

1

I'd like to know if there is a simple way of building a RouteValueDictionary from a url. For example if I have a url http://www.site.com/controllerA/actionB/idC, then how can I extract the RouteValueDictionary where the item with the key controller would have the value of controllerA.

Note this isn't for testing so I don't want to use mocking and the solution here does not seem to be working.

A: 

It seems this was never an issue addressed by MVC so I have written by own URL parser. Although reflector does help a bit.

Lavinski