How to get current controller and action from inside Child action?

And if you want to access this from within the child action itself (rather than the view) you can use

ControllerContext.ParentActionViewContext.RouteData.Values["action"] 

Leave a Comment