The following code shows how to add meta tags to a page programmatically.
private void CreateMetaTags()
{
HtmlMeta hm = new HtmlMeta();
HtmlHead head = (HtmlHead)Page.Header;
hm.Name = "Keywords";
hm.Content = "C#, Csharp, C-sharp, .NET";
head.Controls.Add(hm);
}
Similarly, it helps you in adding multiple tags.
[ Message was edited by: JimBot 09/21/2007 04:47 am ... Reason: Link Drop removed ]
|