At first look it seems very difficult but I think it is not that much.
In My example I am writing Meta contents of my page from a utility class file.
Lets say my following method is in utility.cs file
// method that will write meta tags for keyword and description.
For complete article visit, http://www.dotnetfunda.com/articles/article2.aspx
public static void WriteMetaTags(Control ctrl, string keyword, string desc)
{
Page pge = (Page)ctrl;
HtmlMeta mKey = new HtmlMeta();
mKey.Name = "keyword";
mKey.Content = key;
pge.Header.Controls.Add(mKey);
HtmlMeta mDesc = new HtmlMeta();
mDesc.Name = "description";
mDesc.Content = desc;
pge.Header.Controls.Add(mDesc);
}

1 comments:
Hi, thanks for this tip for meta tags
Metatags are very important for a website as search engine reads them while searching a website. So metatags should be written effectively. I read some tips to write some effective metatags from seositecheckup.com. This is also a nice post:
http://www.seositecheckup.com/articles/5
Post a Comment