Dear Friends
I want to change the name of my css file dynamically so
as Mr. Jos Branders helped me, I can change the <head> tag into an HTML
control like this:
<head id="myhead" runat="server">
...permanent content here...
</head>
so that I can modify it from code like this:
Sub Page_Load(sende r As Object, e As EventArgs)
myhead.InnerHtm l &="<LINK href=""Styleson e.css"" type=""text/css""
rel=""styleshee t"">"
End Sub
But when I run the code, I got this error:
The type or namespace name 'myhead' could not be found (are you missing a
using directive or an assembly reference?)
Please help.
Thanks in advance. Andy
I want to change the name of my css file dynamically so
as Mr. Jos Branders helped me, I can change the <head> tag into an HTML
control like this:
<head id="myhead" runat="server">
...permanent content here...
</head>
so that I can modify it from code like this:
Sub Page_Load(sende r As Object, e As EventArgs)
myhead.InnerHtm l &="<LINK href=""Styleson e.css"" type=""text/css""
rel=""styleshee t"">"
End Sub
But when I run the code, I got this error:
The type or namespace name 'myhead' could not be found (are you missing a
using directive or an assembly reference?)
Please help.
Thanks in advance. Andy
Comment