母板页:
- 子页面内容标题和关键字
- C# code
- HTML code
- <head runat="server"> <title>无标题页</title> <meta name="keywords" id="k1" content="1,2,3"/> </head>
protected void Page_Load(object sender, EventArgs e) { this.Page.Title = "123"; HtmlMeta k1 = (HtmlMeta)this.Header.FindControl("k1"); if (k1 != null) { k1.Content = "新的keywords"; } }