复制代码 代码如下:
HtmlGenericControl Include2 = new HtmlGenericControl("script");
Include2.Attributes.Add("type", "text/javascript");
Include2.InnerHtml = "alert('JavaScript in Page Header');";
this.Page.Header.Controls.Add(Include2);
复制代码 代码如下:
Literal li = new Literal();
li.Text = "<script...</script>";
this.Page.Header.Controls.Add(li);
新闻热点
疑难解答
图片精选