17.7.08

Access CSS in a code behind then use the following code

HtmlLink cssLink = new HtmlLink();
cssLink.Href = "%CSS FILE URL HERE%";
cssLink.Attributes.Add( "rel", "stylesheet" );
cssLink.Attributes.Add("type", "text/css");
Master.Page.Header.Controls.Add(cssLink);

No comments: