Do you want to programmatically add the META tags to an ASP.NET page? You can try to the below code:
HtmlMeta metaDesc = new HtmlMeta();
metaDesc.Name = "description";
metaDesc.Content = "Your Description goes here";
Page.Header.Controls.Add(metaDesc);
HtmlMeta metaKey = new HtmlMeta();
metaKey.Name = "keywords";
metaKey.Content = "Your keywords here";
Page.Header.Controls.Add(metaKey);
Comments