I have a mobile website, intercepting the stylesheet/images and setting sizes relative to the device. I have been testing it on IIS7 and works fine.
The live site is IIS6 (lil surprise)...
Normal routing for friendly urls works fine, but the stylesheet/images intercept is not doing anything.
Here is a snippet of my global.asax routing section :
public static void RegisterRoutes(RouteCollection routes)
{
routes.RouteExistingFiles = true;
routes.MapPageRoute("ImageResizerS", "images/{Sub}/{Path}", "~/Site_Handlers/ImageResize.ashx");
routes.MapPageRoute("ImageResizer", "images/{Path}", "~/Site_Handlers/ImageResize.ashx");
routes.MapPageRoute("StyleSheetIntercept", "Styles/{Path}", "~/Site_Handlers/InterceptStyleSheet.ashx");
routes.MapPageRoute("Landing page", "", "~/Site_Files/LandingPage.aspx");
}
What seems to be the problem?
What I have noticed :
When I set routes.RouteExistingFiles = true;
to false
. It creates the same behavior on IIS7 & IIS6...no intercept.