inicio mail me! sindicaci;ón

Teach you CSS of dynamic in Asp.net change

In Asp.net, some moment want dynamic commutation CSS, for instance some moment make personalized page, such OK doing.

It is quotative content below:
<head>
<link Id= "MyStyleSheet" Rel= "stylesheet" Type= "text/css" Runat= "server" />
</head>

Later, wanting to change in the page of CSS, use following code

It is quotative content below:
Sub Page_Load(Sender As Object, e As EventArgs)
If Not (IsPostBack)
MyStyleSheet.Attributes.Add(”href” , “/ Css/flostyle.css” )
End If

Bookmark:Digg Del.icio.us Reddit

Leave a Comment