If you are with 2.0, look at the class HtmlMeta. Here is the example from
the msdn:
protected void Page_Load(objec t sender, EventArgs e)
{
// Create two instances of an HtmlMeta control.
HtmlMeta hm1 = new HtmlMeta();
HtmlMeta hm2 = new HtmlMeta();
// Get a reference to the page header element.
HtmlHead head = (HtmlHead)Page. Header;
// Define an HTML <metaelement that is useful for search engines.
hm1.Name = "keywords";
hm1.Content = "words that describe your web page";
head.Controls.A dd(hm1);
// Define an HTML <metaelement with a Scheme attribute.
hm2.Name = "date";
hm2.Content = DateTime.Now.To String("yyyy-MM-dd");
hm2.Scheme = "YYYY-MM-DD";
head.Controls.A dd(hm2);
}
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
"Dariusz Tomon" <d.*****@mazars .plwrote in message
news:et******** ******@TK2MSFTN GP03.phx.gbl...
Hello
How can I build meta tags dynamically? Please provide an example.
Thank you
Dariusz Tomon