Dynamic CSS file in header

/ Published in: VB.NET
Save to your folder(s)

Dynamic Add css file in header

Copy this code and paste it in your HTML
  1. ' In Asp.net page
  2. <HEAD>
  3. <asp:Literal ID="lit1" Runat="server">
  4. <LINK href="style1.css" type="text/css" rel="stylesheet">
  5. </asp:Literal>
  6. </HEAD>
  8. ' In vb.net load_page
  10. lit1.Text = "<LINK href=""style2.css"" type=""text/css"" rel=""stylesheet"">"

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.