Get all routes defined in global.asax

asp.net, c#, routes

Solution

You can access the `Routes` property on the `RouteTable`

System.Web.Routing.RouteTable.Routes;

Problem

I am using webformrouting in my asp.net c# application. In my global.asax file i define a couple of routes. My question is, how can i get a list of all routes defined from code behind (on a page)?

Original source