// ** URL ROUTING **
private static void RegisterRoutes(System.Web.Routing.RouteCollection routes)
{
routes.MapPageRoute("Subsite", "{SubsiteName}", "~/Content.aspx");
//routes.MapPageRoute("About", "About", "~/Content.aspx");
//routes.MapPageRoute("Conferences", "Conferences", "~/Content.aspx");
//routes.MapPageRoute("PoliticsPortal", "PoliticsPortal", "~/Content.aspx");
}
I am trying to register my routes as above, using a single
routes.MapPageRoute() statement to cover all locations of the form
www.mysite.com/subsiteName; however, I encounter all sorts of bizarre
browser errors relating to my use of client-side AJAX. If instead I use
a separate "hard-coded" statement for each route, it all seems to work.
I
have noticed that examples for this ...
Go to the complete details ...