Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 urls for the same page:

1)original url= Doctors.aspx?Address=Delhi&Category=Cardiologist
2)rewritten/alias url= doctors/delhi/cardiologist

The CSS of the page is working fine with the original url, but the CSS is not functioning on the rewritten url.

Why CSS is not functioning for the second (alias/rewritten) url???Please help!!!
Posted
Updated 17-Nov-14 1:02am
v4

1 solution

It sounds like your <link> tag has the wrong path in its href attribute.

Make sure you have runat="server" on the tag, and use an app-relative path for your stylesheet:
HTML
<link runat="server" rel="stylesheet" href="~/content/styles/your-stylesheet.css" />
 
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