Connecting Tech Pros Worldwide Forums | Help | Site Map

how to add unique meta tags to each content page/

bashetty@gmail.com
Guest
 
Posts: n/a
#1: Mar 26 '07
Well its a strange problem i have, some of you might already faced it
and have a solution. I have to maintain a set of unique "search key
words" in meta tags for each content page in my site. With master
paging , i guess i can only have <headtag in my MasterPage. Can any
one let me know how to resovle this issue?


=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
 
Posts: n/a
#2: Mar 28 '07

re: how to add unique meta tags to each content page/


I keep this in my Global.asax:

public static void PlaceMetaTags(System.Web.UI.Page page, string
keyWordList, string descriptionList)
{
HtmlHead head = (HtmlHead)page.Header;
HtmlMeta hm = null;
hm = new HtmlMeta();
hm.Name = "keywords";
hm.Content = keyWordList;
head.Controls.Add(hm);
hm = new HtmlMeta();
hm.Name = "description";
hm.Content = descriptionList;
head.Controls.Add(hm);
}

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net




"bashetty@gmail.com" wrote:
Quote:
Well its a strange problem i have, some of you might already faced it
and have a solution. I have to maintain a set of unique "search key
words" in meta tags for each content page in my site. With master
paging , i guess i can only have <headtag in my MasterPage. Can any
one let me know how to resovle this issue?
>
>
Closed Thread