Is there a way in a view in ASP.Net MVC to get the names of the controller and actien method that are using the view?
Try this:
<%= ViewContext.RouteData.Values["Controller"] %> <%= ViewContext.RouteData.Values["Action"] %>