HtmlLink cssLink = new HtmlLink();
cssLink.Href = "/template/rescss/css.css";
cssLink.Attributes.Add("rel", "stylesheet");
cssLink.Attributes.Add("type", "text/css");
this.Header.Controls.Add(cssLink);
用这个. 写在Page_Load里面就好了.
沙加
|
老鸟四级
|园豆:3680
|
2008-01-10 13:10