Hi,
I am using System.Web.Routing in the Asp.Net Webform Application. I write the following route in the global.asax :-
=====================================================
routes.RouteExistingFiles = true; // I made true/false both, but none works
routes.Add("competition", new Route ( "Test", new CustomRouteHandler("~/Test/WebForm1.aspx") ));
=====================================================
And the directory structure is the following:-
Application
|
|--- Test (Folder)
|--- Webform1.aspx
When I write in the browser http://localhost:xxxx/Test/ (using Casini), the request is handle in the traditional manner not through the routes. And, it gives me the "Directory Listing -- /test/" page.
Could you please help me out? I am looking forward to hear from you.