gdjlc

培养良好的习惯,每天一点一滴的进步,终将会有收获。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

                HtmlHead head = this.Header;//获得Head标记 
                head.Title = dr["web_title"].ToString(); 

                HtmlMeta WebKeyWords = new HtmlMeta();//创建Meta标记 
                WebKeyWords.Name = "KeyWords";
                WebKeyWords.Content = dr["web_keywords"].ToString();


                head.Controls.Add(WebKeyWords); //向head里添加Meta 

                HtmlMeta WebDescription = new HtmlMeta();
                WebDescription.Name = "Description";
                WebDescription.Content = dr["web_description"].ToString();


                head.Controls.Add(WebDescription);

posted on 2009-10-27 13:31  gdjlc  阅读(430)  评论(0编辑  收藏  举报