Dynamic CSS file in header

Submitted by:Andery Smith

Date added:15 May, 2012

Category:VB.NET

VB.NET Code example to add dynamic 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