Follow by Email

Tuesday, 25 September 2012

How to add meta keywords and description from code behind page in asp.net


    protected void Page_Load(object sender, EventArgs e)
    {
            HtmlMeta tag = new HtmlMeta();
            tag.Name = "description";
            tag.Content = "My description for this page";
            Header.Controls.Add(tag);
    }

0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha