Answers and code snippets from ASP.NET projects (Webforms/MVC/Classic ASP)
RouteData routeData = RouteTable.Routes.GetRouteData(new HttpContextWrapper(HttpContext.Current)); if (routeData == null) return; string action= routeData.GetRequiredString("action");