Dynamic CSS file in header

Submitted by:David Villa

Date added:06 October, 2012

Category:VB.NET

Code for dynamic add css file in header

Tags: dynamic css

Code Snippet:

' In Asp.net page
<HEAD>
<asp:Literal ID="lit1" Runat="server">
<LINK href="style1.css" type="text/css" rel="stylesheet">
</asp:Literal>
</HEAD>

' In vb.net load_page

lit1.Text = "<LINK href=""style2.css"" type=""text/css"" rel=""stylesheet"">"
 
 

Comments