Hello,
I am adding, in a page, a reference to a CSS file at runtime as
follows:
Dim base As HtmlGenericCont rol = New HtmlGenericCont rol("style")
With base
.Attributes.Add ("type", "text/css")
.Attributes.Add ("media", "Screen")
.InnerText = "@import url(App_Assets/PT/Styles/Base.css);"
End With
Page.Header.Con trols.Add(base)
In which Page Event should I do this?
Thanks,
Miguel
I am adding, in a page, a reference to a CSS file at runtime as
follows:
Dim base As HtmlGenericCont rol = New HtmlGenericCont rol("style")
With base
.Attributes.Add ("type", "text/css")
.Attributes.Add ("media", "Screen")
.InnerText = "@import url(App_Assets/PT/Styles/Base.css);"
End With
Page.Header.Con trols.Add(base)
In which Page Event should I do this?
Thanks,
Miguel
Comment