Is it Possible in Title tag ?

Discussion in 'Search Engine Optimization' started by kutekutta, Jan 28, 2009.

  1. #1
    Hi.

    Is there any ways to changing our Title tag dynamically ?

    Can you please help me out.

    Thanks
     
    kutekutta, Jan 28, 2009 IP
  2. Roger_Silvester

    Roger_Silvester Peon

    Messages:
    277
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Give your title tag an id and runat attribute. then declare it in code behind And then you can retrieve data from a dataset and set the inner text property equal to the text or whatever.

    <title id="PageTitle" runat="server"></title>

    Protected WithEvents PageTitle As HtmlGenericControl

    PageTitle.InnerText = ds.Tables(0).Rows(0).Item("ArticleTitle").ToString

    I hope that this works for you

    Regards
     
    Roger_Silvester, Jan 28, 2009 IP
  3. manish.chauhan

    manish.chauhan Well-Known Member

    Messages:
    1,682
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Yes you can, however, you have to hard-code it according to your requirements..:)
     
    manish.chauhan, Jan 28, 2009 IP
  4. kutekutta

    kutekutta Peon

    Messages:
    807
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hard-code means how can we do that ? explain me :(
     
    kutekutta, Jan 28, 2009 IP
  5. andrewwise

    andrewwise Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I use Wordpress for all of my pages, and I've found this plugin to be especially useful for creating custom Title tags:

    netconcepts.com/seo-title-tag-plugin/

    You want to look at more than just the title tag, but the actually URL, for instance if your keyword was "gumballs":

    candymachines.com/gumball-reviews/best-gumball-ever/

    so you can incorporate in your keyword into the structure of the URL
     
    andrewwise, Jan 28, 2009 IP
  6. izwanmad

    izwanmad Banned

    Messages:
    1,064
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if you use wordpress or anything that is based on php... use this..

    this code is used to randomize the title.

    
    <?php
        $title_array = array("Title 1", "Title 2", "Title 3", "Title 4", "Title 5", "Title 6");
        $random_number = rand(0, count($title_array) - 1);
    ?>
    
    PHP:
    and put the title_array between <title> tag ... example:

    
    <title><?php echo $title_array[$random_number]; ?></title>
    
    PHP:
    that was if you using asp.net
     
    izwanmad, Jan 28, 2009 IP
  7. Camabeco

    Camabeco Peon

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    it's not only possible, it's compulsory ^^
     
    Camabeco, Jan 28, 2009 IP