Click here to Skip to main content
15,748,477 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends.

I have a small issue in URL rewriting. I am using RewritePath method.

Suppose. I have following structure in application.


Now, for category page, I have not any problem because I am calling page like as and its rewrite to category.aspx page

for product page, I am calling page like as and rewrite to product.aspx page.
but when this page is opened, I loses css style and images that are used in the page because of relative root path and in this case path will be defined by nokia.

I have googled a lot but not find any particular solution to resolve this issue.

can any one give me solution or suggestion that will help me to complete my work.

Updated 26-Mar-10 3:28am

1 solution

Add stylesheets in your code behind and use ResolveUrl

About ResolveUrl method[^]
Share this answer

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