asp.net mvc 2 - How do I get the RouteData associated with the parent action in a partial view? -


In action for a partial view, I want to know the root directory associated with the parental task.

This partial view is part of my masterpiece template, and I want to know the controller and the action that was said as part of page rendering.

In the action of my partial view, I have the Routadata.values ​​["Controller"] and Routadata.value ["Action"] I get control and action for my partial view.

Any suggestions?

- edit -

Controlling context (from which view -contact exits) You can get a parent appointment vectlectac:

  ViewContact ParentActionWinContext.Rouard_Data ["Controller"]  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -