🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.aspdotnet.general
Article #60

Another solution for GridView paging/bot/spider problem.

#60
From: johnmott
Date: Sat, 11 Aug 2007 21:21
18 lines
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
Technical Details
Message-ID: <FMWdnZ6Fg53StSPbnZ2dnUVZ_g2dnZ2d@comcast.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 124d48,4c860fb2beaac7bb,start
X-Google-Attributes: gid124d48,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail
NNTP-Posting-Date: Sat, 11 Aug 2007 16:21:18 -0500
From: johnmott<%=58+1%>@hotmail.com
Newsgroups: borland.public.csharpbuilder.aspdotnet.general
Subject: Another solution for GridView paging/bot/spider problem.
Message-ID: <FMWdnZ6Fg53StSPbnZ2dnUVZ_g2dnZ2d@comcast.com>
Date: Sat, 11 Aug 2007 16:21:19 -0500
Lines: 19
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 68.32.106.189
X-Trace: sv3-VfNBmgrORdTTdpn0aF4e6C6teeJR4IhQOufzf+gtIMibMDDo33pyzY6qhJcrbSk03IMhOXdxy5kPxvW!9hzSmlkf0S197A5M/bswzLl781uoZ7jBYV44yrCpAmZwi1Vo3u9p2qOdBUBo7qsAJukelg6lpAZS!A/bsgu+taXzONvcbc7mW6EMt8oavrA==
X-Complaints-To: abuse@comcast.net
X-DMCA-Complaints-To: dmca@comcast.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.35