Write Meta tag in aspx page dynamically

Posted on December 19, 2008. Filed under: Asp.net |

HtmlMeta mt = new HtmlMeta();
mt.Attributes.Add(“keyword”, “hello is world”);
Page.Header.Controls.Add(mt);
HtmlMeta mt1 = new HtmlMeta();
mt1.Attributes.Add(“name”, “suresh”);
mt1.Attributes.Add(“keyowrd”, “hello rupak how r u”);
mt1.Attributes.Add(“discription”, “yellowpages india,web hosting”);
Page.Header.Controls.Add(mt1);

Make a Comment

Make a Comment: ( None so far )

blockquote and a tags work here.

    About

    Hi,I am Suresh Sharma from Gorakhpur , UP, India.I have work on .net technology from 2 years. Key skills-Asp.net 2.0,3.5, Sql 2005,2000. Ajax.net 1.1,C#.net

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...