meta tag and description in at run time

Posted on 2009-12-20
Last Modified: 2013-12-08
how change
meta tag and description in at run time
and Google friendly
Question by:chandresh43
    LVL 30

    Accepted Solution

    LVL 30

    Expert Comment

    by:Reza Rad
    LVL 30

    Expert Comment

    by:Reza Rad
    let me simplify the above links with a sample:

    set runat="server" in your meta tags like below:

        <title id="title" runat="server">Default</title>
        <meta name="description" content="description" id="description" runat="server" />
        <meta name="keywords" content="keys" id="keywords" runat="server" />

    then in your code change it like below:

    this.title.InnerText = "This Title"
    this.keywords.Attributes("content") = "key,word"
    this.description.Attributes("content") = "A demonstration of Setting title and meta tags"


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The viewer will learn how to count occurrences of each item in an array.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now