I have the following MapPageRoutes;
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs on application startup
Routing.RouteTable.Routes.MapPageRoute("", String.Empty, "~/listIt.aspx")
Routing.RouteTable.Routes.MapPageRoute("home", String.Empty, "~/Default.aspx")
Routing.RouteTable.Routes.MapPageRoute("test", "route", "~/test.aspx")
Routing.RouteTable.Routes.MapPageRoute("listRoute", "{listName}/{*queryString}", "~/listIt.aspx")
End Sub
The bottom two work but the top two don't seem to do anything. Basically I have a page with a url of www.foo.com/listIt.aspx, I just want www.foo.com without the trailing /listIt.aspx
What am I doing wrong because this seems fairly trivial.
Go to the complete details ...