I have a String inside the action of one of my controllers that represents a Referring URL. The current request's route data is not what I'm looking for (because it is being called from the script tag inside another view).
I want to find the Action and Controller for the referring Url.
Is there some way can I manually use a string like "/Product/23" to find the controller and action the string as a url would produce?
I blogged about doing this exact thing a couple weeks ago:
Creating a RouteData instance from a URL
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With