hello all
i am working on URL Rewriting using RegisterRoutes.
its working fine but all css ,js and image not working when i redirect page using URL Rewrite.
my code is in global ascx is below
public static void RegisterRoutes(RouteCollection routeCollection)
{
routeCollection.MapPageRoute("RouteForcategory", "Product/{Cat_Id}/{Cat_Name}", "~/ProductDetailss.aspx");
}
my image path is
<img src="images/logo.png" alt="logo">
but when i run then url and image path looking like below
http://localhost:49936/Product/3/Fruits
and my image path looked
http://localhost:49936/Product/3/images/logo.png
but above is not correct path .
when i redirect page from home page to Productdetailss.aspx then images css, directory root path are changed ,and its also rewrite ,i dont want to rewrite css,js,and image path .
i am also used resloved url code but not working .
help me anyone