asp.net使用C#中的this.title和page.title都是获取当前页面的标题么
1个回答
展开全部
用模板页 title显示 句改 Untitled Page 改 赋值 protected void Page_Load(object sender, EventArgs e) { //Page title Page.Title = "This is a title and meta test page."; //Encode/Content type HtmlMeta encode = new HtmlMeta(); encode.HttpEquiv = "Content-Type"; encode.Content = "text/胡迅html; charset=utf-吧"; Page.Header.Controls.Add(encode); //Language HtmlMeta lang = new HtmlMeta(); lang.HttpEquiv = "Content-Language"答弊; lang.Content = "zh-cn"; Page.Header.Controls.Add(lang); //Description HtmlMeta desc = new HtmlMeta(); desc.Name = "Description"; desc.Content = "Test the meta controls"; Page.Header.Controls.Add(desc); //Keyword HtmlMeta keywords = new HtmlMeta(); keywords.Name = "keywords"; keywords.Content = "title,meta,test,page"; Page.Header.Controls.Add(keywords); } 应该裤举此能看
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询