日期:2014-05-17 浏览次数:20546 次
HtmlMeta meta = new HtmlMeta(); meta.Name = "keywords"; meta.Content = "关键字"; Page.Header.Controls.Add(meta);
<head id="Head1"> <title>标题</title><meta name="keywords" content="关键字" /></head>
<head id="Head1"> <title>标题</title> <meta name="keywords" content="关键字" /> </head>
Literal li = new Literal(); li.Text = "\r\n"; Page.Header.Controls.Add(li); HtmlMeta meta = new HtmlMeta(); meta.Name = "keywords"; meta.Content = "关键字"; Page.Header.Controls.Add(meta); Literal li2 = new Literal(); li2.Text = "\r\n"; Page.Header.Controls.Add(li2);