動態載入CSS JAVASCRIPT

摘要:動態載入CSS JAVASCRIPT


HtmlGenericControl objLink = new HtmlGenericControl("link"); 
objLink.Attributes.Add("rel", "stylesheet");
objLink.Attributes.Add("href", "css/css.css"); 
objLink.Attributes.Add("type", "text/css");
this.Page.Header.Controls.Add(objLink);