Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can gridview paging be set to generate urls instead of postbacks?

Reply
Thread Tools

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

 
 
John Mott
Guest
Posts: n/a
 
      08-11-2007
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QnJhdWxpbyBEaWV6?=
Guest
Posts: n/a
 
      08-11-2007
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
>
>
>

 
Reply With Quote
 
 
 
 
John Mott
Guest
Posts: n/a
 
      08-11-2007
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/View...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-...
> 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
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDBC URLs ...not really URLs? Adam Monsen Java 11 02-08-2009 08:14 PM
Converting Relative URLs into Absolute URLs Nathan Sokalski ASP .Net 1 08-12-2008 07:03 AM
Problem with e-mails opening in Firefox 2 - URLs with .php open in IE instead GraB NZ Computing 6 12-11-2006 08:23 AM
dynamic URLS convert to static URLS for search engines Steve T. ASP .Net Web Services 7 03-04-2004 03:16 PM
Distinguish text URLs from non-text URLs? Kaidi Java 5 01-04-2004 10:15 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57