Wednesday, April 2, 2008

SEO Masterpage Keywords description

ASP.NET, AJAX, Web Services, Vista, Visual Studio, and Some Random Thoughts - Nothing Personal Here!!!


live example

HtmlMeta metaDesc = new HtmlMeta();
metaDesc.Name = "description";
metaDesc.Content = "Tips on roasting coffee at home";
Page.Header.Controls.Add(metaDesc);
HtmlMeta metaKey = new HtmlMeta();
metaKey.Name = "keywords";
metaKey.Content = "roast, coffee, home, tips";
Page.Header.Controls.Add(metaKey);

metaKey.Content = "aaaaroast, xxxxcoffee, xxxxxhome, xxxxtips" + Request["prdty"];
Page.Header.Controls.Add(metaKey);

No comments: