System.Web.UI.HtmlControls.HtmlMeta metaKeywords = new System.Web.UI.HtmlControls.HtmlMeta();
metaKeywords.Name = "keywords"; //增加一个meta标签 eg:<meta name="keywords" />
metaKeywords.Content = "值"; //为meta标签赋值 eg:<meta name="keywords" content="值" />
this.Page.Header.Controls.Add(metaKeywords);
ASP.NET动态创建Media标签
最新推荐文章于 2022-08-15 19:51:53 发布