Add meta data (keywords, description) dynamicly

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;

You can do the same for other meta-data like description.

One Reply to “Add meta data (keywords, description) dynamicly”

Leave a Reply

Your email address will not be published. Required fields are marked *