Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
string action = ViewContext.RouteData.Values["action"].ToString(); string controller = ViewContext.RouteData.Values["controller"].ToString();