asp.net mvc - From within a Controller's action, how can I get the current route information? -
From within the control of a controller, how do I get information about the current route?
How do I loop through other routes?
.. will return the controller of the current route. .. will return the action, etc. RootData is a key / value archive:
this.RouteData.Values ["Controller"];
this.RouteData.Values ["action"];
Comments
Post a Comment