I am currently reading through Adam Freeman's book entitled "Pro ASP.NET 4.5 in C#". As I worked my way through the "Putting it all together" section of Chapter 23 - URL Routing starting on page 632 I thought that the example was very good but wondered why
the author wouldn't include the actual route name in the final response results, i.e., the completely arbitrary name that the developer gives to his routes when defining them at the very beginning of the application. To use an example route from the book,
after this line of code executes:
routes.MapPageRoute("out", "out", "~/Out.aspx");
How would I actually show that first parameter(which intellisense shows as 'routeName') in my final response. Some kind of loop through "System.Web.Routing.RouteTable.Routes" ?
I tried this starting code:
foreach (System.Web.Routing.RouteBase route in System.Web.Rout ...
Go to the complete details ...