BeanSoftware Logo
 

 
ASP.NET Database Search Control
 
 

 
 Home
    Shop
    Advertise
    Write For Us
    Affiliate
    Newsletter
    Contact

How To Link CSS file to ASP.NET page?

I don't know how you deal with this problem, but I always forget this simple line and then looking for some older project to see the sytax :o). Maybe it is good idea to write it as a quick reference. So, in <head > section of your .aspx file insert line like this:

<head>
    <link href="StyleSheet.css" type="text/css" rel="stylesheet" />
 
...
</head>

 

This line will link css file named StyleSheet.css which is located in the same directory like .aspx page.



Related articles:

1. Build Notepad ASP.NET Web Application - part 2 of 2
2. How To Get All Session Variables And Values?

FAQ toolbar: Submit FAQ  |  Tell A Friend  |  Add to favorites  |  Feedback



Copyright © 2002-2008 Bean Software. All rights reserved.