I'm using the following code in the Global.asax file in the Application_BeginRequest event handler.. and here's the problem: When I add the line marked "THIS LINE..", I get that "Done, but with errors on page" at the bottom left of the browser, and AJAX doesn't work. However,.. when I take the line OUT, everything works fine.. and I'm COMPLETELY stumped....
if (url.EndsWith("/home") == true ||
url.Contains("/category") == true ||
url.EndsWith("/products") == true ||
url.Contains("/productdetails") == true ||
{
this.Context.RewritePath("~/StoreSection/home.aspx", false);
}
else
{
this.Context.RewritePath("~/StoreSection/default.aspx", false); // THIS LINE!! BREAKS AJAX
}
why why WHY would this be happening... ...
Go to the complete details ...