aspx里
<%
 
Title
="My home page title" %>

cs里
protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "Title";
        HtmlMeta tag = new HtmlMeta();
        tag.Name = "description";
        tag.Content = "My description for this page";
        Header.Controls.Add(tag);
        HtmlMeta s = new HtmlMeta ();
        s.Name = "keyword";
        s.Content = "My Content for this page";
        Header.Controls.Add(s);
    }




相关文章:

  • 2021-08-15
  • 2021-11-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案