In the default asp.net mvc project, in the Site.Master file, there is a menu navigation list:
In MVC 3 Razor View Engine, you can do it as:
@{string ctrName = ViewContext.RouteData.Values["controller"].ToString();}
My sample worked when I have two pages as: Home/About and its controller has same name Index, so I get controller Name for distinction insteed of action. If you want to get action, just replace with following:
@{string ctrName = ViewContext.RouteData.Values["action"].ToString();}