Quantcast
Channel: ASP.NET – TechnoBlogy
Viewing all articles
Browse latest Browse all 20

Add meta data dynamically

$
0
0

Add meta-data dynamically to your page by adding a HtmlMeta control to your Header. In this example I dynamically add a keyword string to the page.

string keyWords = “metatags, html, dynamic, generate”;

HtmlMeta keywords = new HtmlMeta();

keywords.Name = “keywords”;

keywords.Content = keyWords;

Page.Header.Controls.Add(keywords);


Viewing all articles
Browse latest Browse all 20

Trending Articles