Update Title and Meta Tags Dynamically in ASP.NET
If you are using master pages, updating your title or meta tags (such as “description” and “keywords”) may become an important subject because of the SEO purposes. Since there are several ways to accomplish this, here is my way in C# to do so.

Instead of looping through to remove all meta tags and re-adding them, you can just set the ID of the tag when you create it and use the FindControl method with your specified ID to locate the specific meta tag that you want to modify.
//Creation code
metaKeywords = new HtmlMeta();
metaKeywords.Name = “keywords”;
metaKeywords.Content = strKeywords;
metaKeywords.ID = “cntrlMetaKeywords”;
this.Page.Header.Controls.Add(metaKeywords);
//Find code
metaKeywords = (HtmlMeta)Page.Header.FindControl(”cntrlMetaKeywords”);
metaKeywords.Content = strNEWKeywords;
Ryan
http://www.newsorviews.com