467,906 Members | 1,662 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,906 developers. It's quick & easy.

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
Aug 11 '07 #1
  • viewed: 2467
Share:
1 Reply
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
Aug 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Bishop | last post: by
2 posts views Thread by WebBuilder451 | last post: by
1 post views Thread by davidjgonzalez | last post: by
8 posts views Thread by AG | last post: by
8 posts views Thread by Greg Lyles | last post: by
2 posts views Thread by antonyliu2002 | last post: by
reply views Thread by Don Miller | last post: by
4 posts views Thread by Don Miller | last post: by
1 post views Thread by John A Grandy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.