I use asp.net 4 and web forms in c#.
I would like to know how to Extends a RouteCollection Class for Web Form routing.
As MSDN state RouteCollectionExtensions Class is avaialbe only for MVC routing.
So I would like to know how an equivalent in Web Forms.
Thanks
ASP.NET Routing is available for webforms in .NET 4, and 3.5 I think.
There is guidance on MSDN. http://msdn.microsoft.com/en-us/library/cc668201.aspx
The webforms example requires you to add the following in
global.asaxThe
RouteCollectionExtensionstype provides extension methods which extendRouteCollectionfor the MVC framework, you can create your own extension methods to extendRouteCollection.Simple example below, i’m sure you will want to put
MyRouteCollectionExtensionssomewhere else.