C#后台导入css和设置前台关键字和描述
时间:2011-02-17 来源:fengyubizhe
//Keyword
HtmlMeta keywords = new HtmlMeta();
keywords.Name = "keywords";
keywords.Content = "杭州搬家,搬家公司,搬家";
Page.Header.Controls.Add(keywords);
//Description//描述 描写 形容 种类
HtmlMeta desc = new HtmlMeta();
desc.Name = "Description";
desc.Content = "通过姓名首字母,地域和类别进行搬家查询";
Page.Header.Controls.Add(desc);
//Link/CSS
HtmlLink cssLink = new HtmlLink();
cssLink.Href = "css/search.css";
cssLink.Attributes.Add("rel", "stylesheet");
cssLink.Attributes.Add("type", "text/css");
Page.Header.Controls.Add(cssLink);
相关阅读 更多 +