DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 19:24:35 -0500,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    John Mott
          2    Braulio Diez
          3    John Mott


Can gridview paging be set to generate urls instead of postbacks?   
Hi All,

I recently read a post that said that google and other spiders are unable to 
navigate paging in the GridView control because it uses postbacks and it 
can't determine the url.

I've verified that it doesn't see portions of my site that are on page 2 and 
beyond according to whats generated. This is not a good thing if your want 
people to find your stuff.

The gridview as it is is so sweet I don't want to give it up. Before 
devolving into custom paging is there an option that would have the page 
numbers generate urls that a spider could follow instead of calls into the 
postback?

Thanks,

John
Date:Fri, 10 Aug 2007 19:24:35 -0500   Author:  

RE: Can gridview paging be set to generate urls instead of postbacks?   
Hello

  Recently I have been involved in a thread where we discussed this, you 
have some options:

   - Implement custom paging (there you can swap to    links): 
http://www.codeproject.com/useritems/CustomPaging.asp

   - Leave the URL issue and generate a sitemap for google (a txt with the 
list of all URL's  could be a good start), check out google sitemaps.

  - There is some trick when you build up the page, check if it's google bot 
and change the page size to 1000: 

if (Request.ServerVariables["HTTP_USER_AGENT"] == "Googlebot") {
GridView1.PageSize = 1000;
} else {
GridView1.PageSize = 10;
}

 Good luck
    Braulio


/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------




"John Mott" wrote:


> Hi All,
> 
> I recently read a post that said that google and other spiders are unable to 
> navigate paging in the GridView control because it uses postbacks and it 
> can't determine the url.
> 
> I've verified that it doesn't see portions of my site that are on page 2 and 
> beyond according to whats generated. This is not a good thing if your want 
> people to find your stuff.
> 
> The gridview as it is is so sweet I don't want to give it up. Before 
> devolving into custom paging is there an option that would have the page 
> numbers generate urls that a spider could follow instead of calls into the 
> postback?
> 
> Thanks,
> 
> John
> 
> 
> 
Date:Sat, 11 Aug 2007 04:20:00 -0700   Author:  

Re: Can gridview paging be set to generate urls instead of postbacks?   
Thanks Braulio,

I decided to take a third route -- hijack the page row and put in links with 
url's in it. I don't have large datasets so i'm not worried about 
performance and I'm nervous about the other options.

I created a demo for this:

http://www.nicecleanexample.com/ViewApp.aspx?TID=gridviewnavmod

Like everythign in programming there isn't one right way, just options that 
may be useful in certain circumstances..

John
nice clean examples at www.nicecleanexamples.com



"Braulio Diez"  wrote in message 
news:6389B956-796A-4367-917C-61388FBB4B82@microsoft.com...

> Hello
>
>  Recently I have been involved in a thread where we discussed this, you
> have some options:
>
>   - Implement custom paging (there you can swap to    links):
> http://www.codeproject.com/useritems/CustomPaging.asp
>
>   - Leave the URL issue and generate a sitemap for google (a txt with the
> list of all URL's  could be a good start), check out google sitemaps.
>
>  - There is some trick when you build up the page, check if it's google 
> bot
> and change the page size to 1000:
>
> if (Request.ServerVariables["HTTP_USER_AGENT"] == "Googlebot") {
> GridView1.PageSize = 1000;
> } else {
> GridView1.PageSize = 10;
> }
>
> Good luck
>    Braulio
>
>
> /// ------------------------------
> /// Braulio Diez
> ///
> /// http://www.tipsdotnet.com
> /// ------------------------------
>
>
>
>
> "John Mott" wrote:
>
>> Hi All,
>>
>> I recently read a post that said that google and other spiders are unable 
>> to
>> navigate paging in the GridView control because it uses postbacks and it
>> can't determine the url.
>>
>> I've verified that it doesn't see portions of my site that are on page 2 
>> and
>> beyond according to whats generated. This is not a good thing if your 
>> want
>> people to find your stuff.
>>
>> The gridview as it is is so sweet I don't want to give it up. Before
>> devolving into custom paging is there an option that would have the page
>> numbers generate urls that a spider could follow instead of calls into 
>> the
>> postback?
>>
>> Thanks,
>>
>> John
>>
>>
>> 
Date:Sat, 11 Aug 2007 16:09:46 -0500   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us