3
4 //Encode/Content type
5 HtmlMeta encode = new HtmlMeta();
6 encode.HttpEquiv = "Content-Type";
7 encode.Content = "text/html; charset=utf-8";
8 Page.Header.Controls.Add(encode);
9
10 //Language
11 HtmlMeta lang = new HtmlMeta();
12 lang.HttpEquiv = "Content-Language";
13 lang.Content = "zh-cn";
14 Page.Header.Controls.Add(lang);
15
16 //Description
17 HtmlMeta desc = new HtmlMeta();
18 desc.Name = "Description";
19 desc.Content = "Test the meta controls";
20 Page.Header.Controls.Add(desc);
21
22 //Keyword
23 HtmlMeta keywords = new HtmlMeta();
24 keywords.Name = "keywords";
25 keywords.Content = "title,meta,test,page";
26 Page.Header.Controls.Add(keywords);
27
28 //Link/CSS
29 HtmlLink cssLink = new HtmlLink();
30 cssLink.Href = "MasterPage.css";
31 cssLink.Attributes.Add("rel", "stylesheet");
32 cssLink.Attributes.Add("type", "text/css");