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?

RootData is a key / value archive:

  this.RouteData.Values ​​["Controller"];  

.. will return the controller of the current route.

  this.RouteData.Values ​​["action"];  

.. will return the action, etc.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -