I am wondering if i can have a route like below.
var newHandler = new CustomRouteHandler("~/folder_name/abc.aspx");
routes.Add(new Route("folder_name", newHandler));
I have a folder in my asp.net website named “folder_name” and i want a route with same name to be added to route collection and routing it to abc.aspx in the same folder. I am not able to do this, i am getting HTTP Error 403.14 – Forbidden
The Web server is configured to not list the contents of this directory.
Is there any way to have this “folder_name” routing to “~/folder_name/abc.aspx”?
Finally i setup abc.aspx as default document for the “folder_name” and it worked.