How to use "description" meta tag in a website containing masterpages

Rate It (1)

Last post 06-19-2009 4:13 AM by chintanpshah. 13 replies.

Sort Posts:

  • How to use "description" meta tag in a website containing masterpages

    06-13-2009, 9:11 AM

    hi all,

    My website contains a masterpage and all other pages uses it .......since i am using masterpage , i can use "description" meta tag and other tags in the masterpage only as content pages doesn't allow that .......now all the pages on my website have the same meta tags , how can i revert that and make my website seo optimized by using different meta tags for every page.......is there any other way , like the one we used to define the title of the page for the content pages , irrespective of the masterpage title tage ..........
    Like we include title in the page declarative ......
    Please let me know asap ....... 


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-13-2009, 9:51 AM
    Answer
    • Star
      10,720 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,905
    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: How to use "description" meta tag in a website containing masterpages

    06-13-2009, 9:53 AM
    Answer
    • Participant
      929 point Participant
    • naspinski
    • Member since 04-25-2008, 5:12 PM
    • Posts 170

    You could just put a literal in the head of your masterpage and find/replace if in the code of your content pages.

    Also, when 4.0 comes out, this will be built in behavior!

    ...for some reason, most people assume that you can't figure out the incredibly difficult 'Mark as Answer' feature...

    I on the other hand, I have faith in you collective Asp.Net forums!

    naspinski.net
  • Re: How to use "description" meta tag in a website containing masterpages

    06-14-2009, 12:07 AM
    Answer
    • Member
      651 point Member
    • Bobby-Z
    • Member since 10-04-2008, 5:53 AM
    • Orange County, CA
    • Posts 302

    You could also just put generic meta tage in the Masterpage, and then in the head contentplaceholder section of the content pages add the keywords or relevant meta tags.

    "Success is the Sum of Small Efforts, Repeated Day in and Day Out - Without Ceasing!"

    Robert Hall
    CEO and Founder
    My Service Solutions, Inc.
  • Re: How to use "description" meta tag in a website containing masterpages

    06-14-2009, 10:49 AM

    i think we can just put a description tag in the page declarative at the top of the content pages , i think that will work the same as the title.......thanks for your help guys , i always appreciate asp.net because of people like you only.....


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-15-2009, 10:36 AM

    well i have added the meta tag to the contentpage head section.... like this ...
    <meta name="Description" content="xyz.." />

    now please visit this link and tell me if its working by checking the source view .....i think its working but still google is showing the content of the page and not using the descripiton i put in the contentpage header , does google take time to effect changes...

    http://www.rdinvent.com/services

     

    let me know asap if i am wrong  


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-15-2009, 12:21 PM
    • Star
      10,720 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,905

    If you have submitted Sitemap to google, it will take 48 hours after updating sitemap.

    Otherwise, It may take 1day, 1 week, 1 month ... It depends upon number of  external links(PageRank) to you site.

    Pages in these sites are indexed in google in just 2 to 3 hours.

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: How to use "description" meta tag in a website containing masterpages

    06-18-2009, 8:22 AM

    well .....i guess there is something wrong in using the description meta tags....i have added the meta tag "description" in the head of content pages , and there is no definition of "description" metatag in my masterpage......still google is using the body of the content page as desciption , its not using the "description" metatag i have put in the pages......please tell me what to do , as its showing the body content which is not what i want , i want the description metatag to be used ........

    can u please tell me a way to check if my tags are correctly placed and its just that google doesn't to use my description or what .......

    Please tell me asap , as when anyone types the name of my company in search, it doesn't look good in description.....also one more thing , its been 4 days and google has again crawled my website but still its using the same description content

      


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-18-2009, 9:17 AM

    someone please reply , more than 100 people have viewed since last reply but no one has yet cared to answer.....please help friends......


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-18-2009, 10:46 AM
    • Participant
      929 point Participant
    • naspinski
    • Member since 04-25-2008, 5:12 PM
    • Posts 170

    I already answered your question (second post on the whole thread) - don't understand what more you need, it's really quite simple.

      Have this in your masterpage:

    <head runat="server">
        <title></title>
        <asp:ContentPlaceHolder id="head" runat="server">
        </asp:ContentPlaceHolder>
    </head>

     and this in each page:

     
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        <meta name="description" content="this is my description" />
    </asp:Content>
     
     
    ...for some reason, most people assume that you can't figure out the incredibly difficult 'Mark as Answer' feature...

    I on the other hand, I have faith in you collective Asp.Net forums!

    naspinski.net
    Filed under: ,
  • Re: How to use "description" meta tag in a website containing masterpages

    06-18-2009, 8:06 PM
    • Member
      651 point Member
    • Bobby-Z
    • Member since 10-04-2008, 5:53 AM
    • Orange County, CA
    • Posts 302

    I also learned another trick :

    Since some bots also check your page for content, 

    Copy Your keywords and Description, or any data you want and make them comments in the header section, I even have comment keywords for each city and zipcode we represent.

    ie

    <!-- Website, Design, Development, Software, Indian, Company, Graphic, Application, Multimedia -->

    <!-- CityA, CityB, 90640, 90650 -->

    Also the above post

    <meta name="description" content="This Company Serves....." />

    "Success is the Sum of Small Efforts, Repeated Day in and Day Out - Without Ceasing!"

    Robert Hall
    CEO and Founder
    My Service Solutions, Inc.
  • Re: How to use "description" meta tag in a website containing masterpages

    06-19-2009, 2:13 AM
    • Star
      10,720 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,905

    Bobby-Z:
    Copy Your keywords and Description, or any data you want and make them comments in the header section, I even have comment keywords for each city and zipcode we represent.

     

    This is called Black SEO.

    Never do this otherwise google may downgrade or remove your site from indexing.

    Hope this helps...

    Don't forget to mark as answer, if it helps
  • Re: How to use "description" meta tag in a website containing masterpages

    06-19-2009, 3:32 AM

    well i have done this only , what you have said naspinski but google is not using the description for the snippet , its using the page content .......i guess google likes the page content more than the description , anyway thanks for your help guys.....


    RD Invent (Dynamic Solution for DynamicBusiness )

    Professional Web Development Company

    Visit Website
  • Re: How to use "description" meta tag in a website containing masterpages

    06-19-2009, 4:13 AM
    • Star
      10,720 point Star
    • chintanpshah
    • Member since 11-19-2008, 12:39 AM
    • Ahmedabad
    • Posts 1,905
    Hope this helps...

    Don't forget to mark as answer, if it helps
Page 1 of 1 (14 items)