0

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.

Community
  • 1
  • 1
Daniel Little
  • 16,975
  • 12
  • 69
  • 93

1 Answers1

0

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

Daniel Little
  • 16,975
  • 12
  • 69
  • 93