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"]
More Related Contents:
- Why map special routes first before common routes in asp.net mvc?
- Is it possible to make an ASP.NET MVC route based on a subdomain?
- How do you request static .html files under the ~/Views folder in ASP.NET MVC?
- URLs with slash in parameter?
- ApiController returns 404 when ID contains period
- ASP.NET MVC custom routing for search
- MVC Routing Parameter Precedence
- How to get RouteData by URL?
- What is routes.IgnoreRoute(“{resource}.axd/{*pathInfo}”)
- asp.net mvc complex routing for tree path
- How do I configure ASP.NET MVC routing to hide the controller name on a “home” page?
- How does a method in MVC WebApi map to an http verb?
- How do I route a URL with a querystring in ASP.NET MVC?
- Implementing “Remember Me” Feature in ASP.NET MVC
- Route with Two optional parameters in MVC3 not working
- How to reuse Areas, Controllers, Views, Models, Routes in multiple apps or websites
- Attribute Routing not working in areas
- Routing in Asp.net Mvc 4 and Web Api
- MVC 2 AreaRegistration Routes Order
- How can I create a route constraint of type System.Guid?
- Routing with and without controller name in ASP.NET MVC 4
- localhost refused to connect Error in visual studio
- ASP.NET MVC and Ajax, concurrent requests?
- Automapper missing type map configuration or unsupported mapping – Error
- Difference Between $.getJSON() and $.ajax() in jQuery
- ASP.Net MVC route to catch all *.aspx requests
- Fill drop down list on selection of another drop down list [closed]
- How can I fix assembly version conflicts with JSON.NET after updating NuGet package references in a new ASP.NET MVC 5 project?
- How can a formcollection be enumerated in ASP.NET MVC?
- ASP.NET MVC: How to automatically disable [RequireHttps] on localhost?