Thread View: borland.public.csharpbuilder.aspdotnet.general
1 messages
1 total messages
Started by johnmott
Sat, 11 Aug 2007 21:21
Another solution for GridView paging/bot/spider problem.
Author: johnmott
Date: Sat, 11 Aug 2007 21:21
Date: Sat, 11 Aug 2007 21:21
18 lines
2073 bytes
2073 bytes
Hi all, I recently learned from reading that bots and spiders can't penetrate a multi-page GridView with built-in paging, they can only read the first page. It was a true Doh! moment, I don't know why it never occurred to me to check that, but there you go. The paging links are javascript, not url's, so bots can't read them. There are a few solutions to this, each has pluses and minuses. Here is another option. I hijacked the paging row on the GridView and inserted paging links that are url's. Its not a perfect solution because it bypasses .NET state processing and I have to be careful with querystring, but it was the right fit for what I was doing. I created a demo application with complete source code and solution files that you can run online and download as well. Hope it helps. http://www.nicecleanexample.com/ViewApp.aspx?TID=gridviewnavmod John
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads