Add a META tag to a head tag through C#

Here is a nice one as well, how to add a meta data tag to your page header tag. This one below adds the nofollow malarky needed for those SEO boffins.

 
HtmlMeta hmRobots = new HtmlMeta();
 
// Get a reference to the page header element.
HtmlHead hhRobots = (HtmlHead)Page.Header;
 
// Define an HTML <meta> element that is useful for search engines.
hmRobots.Name = "robots";
hmRobots.Content = "noindex,noarchive,follow";
hhRobots.Controls.Add(hmRobots);