xml sitemap for google

Last post 12-22-2009 11:11 AM by rtpHarry. 7 replies.

Sort Posts:

  • Crying [:'(] xml sitemap for google

    12-14-2009, 3:54 AM
    • Member
      7 point Member
    • Codewriter90x
    • Member since 06-11-2009, 8:10 PM
    • Italy
    • Posts 41

    Hi :D

    i have a big problem!

    i have build a web site in asp.net with master page...

    i need to create the xml sitemap for google for indicizate my site.....

    the web site generator of xml sitemap see only the default.aspx page....

    how i must be ??


    plz help meeeeeeeeeeee Cry

  • Re: xml sitemap for google

    12-14-2009, 6:14 AM
    • All-Star
      36,622 point All-Star
    • rtpHarry
    • Member since 10-01-2006, 8:51 AM
    • Lincoln, England
    • Posts 5,909

    All of your page links are imagebuttons which render out to code like this:

     <input type="image" name="ctl00$BttRegistrazione0" id="ctl00_BttRegistrazione0" tabindex="53" src="../../Image/pulsanti/registrazione.jpg" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$BttRegistrazione0", "", false, "", "../../Registrati/", false, false))" style="border-width:0px;" />
    


    As you can see there is no href there that google can follow so it can only see your homepage.


    You should have proper <a href> tags in your navigation like this:

    <a href="pagename.aspx"><img src="imagebutton.jpg" alt="page name"></a>


    Or you can use <asp:HyperLink> and <asp:Image> if you prefer.


    How are you generating this navigation at the moment?

  • Re: xml sitemap for google

    12-14-2009, 9:00 AM
    • Member
      7 point Member
    • Codewriter90x
    • Member since 06-11-2009, 8:10 PM
    • Italy
    • Posts 41

    mmmm google see the linkbutton?? Cry

  • Re: xml sitemap for google

    12-15-2009, 1:25 AM
    • Participant
      1,580 point Participant
    • Spider Master
    • Member since 10-16-2007, 5:32 PM
    • New Zealand
    • Posts 452

    That is what rtpHarry has told you.


    Whats up with the tears everywhere? Its saddening.

    Any way for a search engine bot such as google to identify pages on your site when it crawls your site is by downloading the HTML output that is rendered to browsers.

    When the have this document they scan through looking for the contents that are within the href element (example href"http://www.YourSite.Com/AnotherPage.aspx")

    Once they have all the links from this page they will do this to all your pages until they have a complete list of links and no more pages to crawl.

    Remember it can take weeks before google will index your site! Even then they do not all ways display all your pages.

    Right now Google has indexed 2 Links to your site as found here http://www.google.co.nz/search?rlz=1C1CHMY_enNZ310NZ315&sourceid=chrome&ie=UTF-8&q=site:www.hobbyshopping.it

    Use google web master tools to find out errors google is having with your site.

    To eveluate if your page is rendering correctly use "Developer Tools" or "View Source" that will be found in tools or options depending on the browser of your choice you should even have one of these options by right clicking on the HTML content in the browser.


    Regards Regan.

    Trading Center is a New Classifieds Starter Kit on Code Plex.

    "If Your Question Has Been Answered, Please Mark It As the Answer"

  • Re: xml sitemap for google

    12-17-2009, 3:21 AM
    • All-Star
      36,622 point All-Star
    • rtpHarry
    • Member since 10-01-2006, 8:51 AM
    • Lincoln, England
    • Posts 5,909

    Codewriter90x:

    mmmm google see the linkbutton?? Cry


    No google wont be able to follow links embedded in a linkbutton.

  • Re: xml sitemap for google

    12-17-2009, 3:22 AM
    • All-Star
      36,622 point All-Star
    • rtpHarry
    • Member since 10-01-2006, 8:51 AM
    • Lincoln, England
    • Posts 5,909

    Your options are to either use the image/a tag combo like i mentioned in my first post or manually create an xml sitemap so that google can find your pages that way.

    The first option is the best though.

  • Re: xml sitemap for google

    12-17-2009, 6:04 PM
    • Member
      7 point Member
    • Codewriter90x
    • Member since 06-11-2009, 8:10 PM
    • Italy
    • Posts 41

    I have modify the page.... for exmple:

    <td runat="server" style="">
    <a href='<%# "/Prodotti/Sottocategoria/?Sc="+ Eval("*****").ToString() + "&Categoria=" + Categoria %>'>
    <asp:LinkButton runat="server" PostBackUrl='<%# "~/Prodotti/Sottocategoria/?Sc="+ Eval("******").ToString() + "&Categoria=" + Categoria.ToString)%>' Font-Overline="false">

    <asp:Label ID="SCLabel" runat="server" Text='<%# Eval("******") %>' Font-Names="arial" Font-Size="Small" />
    <br />
    </
    asp:LinkButton></a>
    </td>

    the xml generator see the link but google in the sitemap acept only one link....CryCryCryCryCryCryCryCryCry

  • Re: xml sitemap for google

    12-22-2009, 11:11 AM
    • All-Star
      36,622 point All-Star
    • rtpHarry
    • Member since 10-01-2006, 8:51 AM
    • Lincoln, England
    • Posts 5,909

    Hey,

    That seems closer but I would still put it differently - I dont think a linkbutton is valid content within an anchor tag...

    <td runat="server" style="">
    <asp:HyperLink ID="HyperLink1" runat="server" 
    NavigateUrl='<%# string.Format("/Prodotti/Sottocategoria/?Sc={0}&Categoria={1}", Eval("*****").ToString(), Categoria) %>' 
    Text='<%# Eval("******") %>' />
    <br />
    </td>


Page 1 of 1 (8 items)