Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link tag in user control: .ascx

Status
Not open for further replies.

raghu3

Programmer
Dec 19, 2005
96
US
Hello,
This sounds pretty simple and straight:

I have a generic page_header file: header.ascx which is a common header across the web site.

Would now prefer to have the style sheets in this header so that I can refernce them all over. The traditional html link tag in the header.ascx does not show up the href at all:

Here is my header.ascx

<link id="styles1" rel="stylesheet" type="text/css" href="styles.css" />

Any styling from the above is not applied at all!.
I do not get any error also.

I tried setting the href on Page_load of the header.ascx.

If I view source HTML generated on the aspx, I see the following for the link:

<link id="Header_styles1" rel="stylesheet" type="text/css"></link>

The href is totally lost !.

what am I missing.

I am using .NET 1.1 on VS 2003.










 
Works fine for me. Try creating a new project with only that code in the user control and you should see it working. It must be something else in your project that is intefering with it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top