Click here to Skip to main content
15,910,886 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Sir,
Sir i am working on a project and in it i have added a external css.
Please tell me how to use an external css in aspx.vb page?


Thank You
Posted
Updated 1-Jul-11 19:16pm
v2
Comments
SURBHI TYAGI 2-Jul-11 1:06am    
Is there anyone?

1 solution

Please don't nag, your question is both trivial ( meaning you own no books and are too lazy to look for online help ), and you're asking for free help, which means you get it when you get it. If you have an external css file, you just link to it.

XML
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css"> ...


is the first example I found with google.
 
Share this answer
 
Comments
SURBHI TYAGI 2-Jul-11 1:14am    
ok Thank You sir but i have used this already.
Christian Graus 2-Jul-11 1:17am    
OK, so what's the issue ? If you want to set it in your code behind, the easiest way is to put a Literal on the page, and set it to point to the CSS by setting it to be a version of hte code I gave you, in your code behind.

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