In the .NET 4 webforms application, I used this to define a route definition.
string myOperation = ((System.Web.Routing.Route)(Page.RouteData.Route)).Url; //string has value "Stop" or "Start"
Let's say your routes are as follows:
routes.MapPageRoute("StopEmailAlerts", "Stop/{SomeToken}", "~/Emailing.aspx", false); routes.MapPageRoute("SendEmailAlerts", "Start/{SomeToken}", "~/Emailing.aspx", false);
source share