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?
views:
286answers:
1
+17
A:
Try this:
<%= ViewContext.RouteData.Values["Controller"] %>
<%= ViewContext.RouteData.Values["Action"] %>
eu-ge-ne
2009-07-05 09:59:11