ASP.NET2.0  C# 如何在不使用母板也的情况下设置网页的keywords 和description 

使用母板页的有 
调用母版的页面里能用 

<title> <%=title%> </title> 
<meta content=" <%=keywords%>" name=keywords> 
<meta content=" <%=description%>" name=description> 

if (!IsPostBack) 

HtmlMeta tag 
= new HtmlMeta(); 
tag.Name 
= "keywords"
tag.Content 
= "23434234234"
Header.Controls.Add(tag); 
tag 
= new HtmlMeta(); 
tag.Name 
= "Description"
tag.Content 
= "234234234234"
Header.Controls.Add(tag); 

相关文章:

  • 2022-01-12
  • 2022-01-08
  • 2022-02-22
  • 2022-01-28
  • 2021-12-19
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案