// Create HtmlHead object.
HtmlHead head = (System.Web.UI.HtmlControls.HtmlHead)Header;
//Create HtmlMeta Object.
HtmlMeta meta = new HtmlMeta();
//Add Attributes to Meta tags.
meta.Attributes.Add("content", objLpa.MetaDesc);
meta.Attributes.Add("name", "description");
//Add meta tag to html header.
head.Controls.Add(meta);
Friday, September 19, 2008
Programmatically Add Meta Tags in asp.net page
at
3:52 AM
·
Category: Other
Subscribe to:
Post Comments (Atom)
Archivo
Categories
- Custom Control (1)
- Data Control (1)
- Graphics GDI+ (11)
- Other (6)
- SQL SERVER (1)
0 comments:
Post a Comment