How to add meta tag in asp2.0 net

Discussion in 'Search Engine Optimization' started by priyanka_j31, Sep 21, 2007.

  1. #1
    The following code shows how to add meta tags to a page programmatically.

    private void CreateMetaTags()
    {


    HtmlMeta hm = new HtmlMeta();

    HtmlHead head = (HtmlHead)Page.Header;

    hm.Name = "Keywords";
    hm.Content = "C#, Csharp, C-sharp, .NET";
    head.Controls.Add(hm);

    }

    Similarly, it helps you in adding multiple tags.For more information you can visit http://www.bloggerforce.com
     
    priyanka_j31, Sep 21, 2007 IP