Well spotted - didn't check the code before I posted so I'm not surprised I missed something!
I don't use the link tag myself - I use the following syntax for external CSS:
You could use the HtmlGenericControl here again like so:Code:<head> <style type="text/css"> @import url("nutter.css"); </style> </head>
and thenCode:<style id="css1" runat="server" type="text/css"></style>
This might get around the bug you are experiencing with the link tag.Code:Protected css1 As HtmlGenericControl Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load css1.InnerText = "@import url(""nutter.css"");" End Sub
DJ





Reply With Quote