Wrox Programmer Forums
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2008, 04:45 AM
Authorized User
 
Join Date: Mar 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Paging not working

On some of my pages I have datagrids showing the output from a corresponding stored procedure, which abstracts the record extraction logic away from ASP into the db where it belongs. Paging is set to On in each of the datagrids, but it fails. I click on Next, or the page 3 link on the other web-page, and all I get is refresh of the existing subset of records once past the first page of data. I can't scroll through any of the remaining pages records that the page count displays - eg the Page 8 link refreshes page 2's data. The data is there - I can run the SPs separately in Query Analyzer and get the full set, a few hundred records.

I've checked the documentation; my code and datagrid properties reflect what ASP expects. Could paging be limited by the spec of the server? ASP and SQL server are both running on v low spec PC that acts as my development box - W2K, Pentium PIII, 128MB RAM.

Can anyone suggest a resolution to this paging problem?
 
Old September 29th, 2008, 05:50 PM
Friend of Wrox
 
Join Date: Nov 2007
Posts: 207
Thanks: 2
Thanked 15 Times in 15 Posts
Default

Post your code... are you using a SqlDataSource or are you setting the datasource in the codefile?

Jason Hall
 
Old October 3rd, 2008, 03:26 PM
Authorized User
 
Join Date: Mar 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Tssk. Paging and page caching are incompatible, which is obvious once you stand back and think about it. I removed the cache directives from the relevant pages, and all is well.






Similar Threads
Thread Thread Starter Forum Replies Last Post
DB recordset paging using ajax paging? kumiko Classic ASP Basics 0 May 26th, 2008 10:23 AM
window.opener working .... not working alyeng2000 Javascript How-To 5 January 5th, 2007 08:05 AM
Web.Config..Working or Not Working peace95 ASP.NET 1.0 and 1.1 Basics 1 September 18th, 2006 06:53 AM
Local COM working , but not working at Web Serv nagen111 .NET Web Services 3 February 19th, 2005 04:22 AM
Get Working Copy... not working Enkiel Classic ASP Basics 0 April 21st, 2004 01:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.