Posted By

kzelda on 04/10/12


Tagged

VBNet aspnet c#


Versions (?)

Dynamic CSS file in header


 / Published in: VB.NET
 

Dynamic Add css file in header

  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>
  7.  
  8. ' In vb.net load_page
  9.  
  10. lit1.Text = "<LINK href=""style2.css"" type=""text/css"" rel=""stylesheet"">"

Report this snippet  

You need to login to post a comment.