Click here to Skip to main content
15,905,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have implemented Url Rewriting in my Project But due to that All CSS and Images
has been lost ..only data is coming over there but with out css.Can Any body give me the exact solution even i have used Relative path too.For Example
<link href="<%=RelativePath %>Sections/GL/Campaign/Style/CSS/loadingbox.css" rel="stylesheet" type="text/css" />

On Web Config.
<rewrite url="^~/Sections/GL/ShopingCart/(.+)" to="~/Sections/GL/TransactionProceed.aspx?SectionId=$1" />


On My Page

C#
Response.Redirect(RelativePath + "Sections/GL/ShopingCart/" + GetEncodedID(this.SectionID));
Posted
Updated 14-May-12 0:17am
v4

1 solution

Use this tip to resolve the URL's: Resolving Paths in a Multi-Folder WebSite[^]

Once the URL's are resolved, CSS files reference too should get resolved.
 
Share this answer
 
Comments
fjdiewornncalwe 9-Mar-11 10:03am    
As an addition to this, a good way to see what is actually going on is to view the html source in your browser to see what is actually getting sent to your client for these urls. It may shed light as to where a solution lies.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900