Posts tagged description
Add META keywords and Description in ASP.NET (DigitalColony.com)
Feb 10th
Posted by admin in C# and ASP.Net
Add META keywords and Description in ASP.NET Here is the syntax for programmatically adding META tags to an ASP.NET 2.0 page. 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); ASP.NET will More >