tags:

views:

115

answers:

1

I have an MVC View User Control and from with Controller I would like to find out what the name of the controller that the MVC View User Control has been called from.

Hope that makes sense?

+2  A: 

This should do it :

<%=ViewContext.RouteData.Values["controller"] %>
çağdaş