Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 July 29th, 2004, 06:11 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADO Paging - ASP returns wrong PageCoun

Hi There,

I'm running an ASP site that talks to a COM+ app server and also a COM+ data server.

I recently changed some data server components to start using ADO paging to handle smaller recordsets. All is ok but when the ADOR recordset is returned to my ASP the pagesize always returns 10!?!?!? This of course messes up the total page count as it has calculated on 10 records per page. I.e setting a page count & cache size of 25 still gives me pagecount and size of 10 in the ASP GUI.

Debugging the VB COM+ components I see that the page counts are all ok!

The data layer and business layer both return and ADOR recordset. The data layer is using a client side cursor,forward only and read only.

I have tried setting the pagesize in the ASP before and after recordset is returned from the COM+ component to no avail!!

AAAAAAAAAAAAAAGH!
 
Old July 29th, 2004, 06:15 AM
Registered User
 
Join Date: Jul 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

oh dear....

Setting the pagesize after the COM+ component returns the recordset seems to work ok!

How cr@p is that? You'd think the data layers page sizes would take presidence?????






Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging in ASP. rupen Classic ASP Basics 0 October 4th, 2005 08:34 AM
profesional ASP 3.0 chapter 10 ADO paging josephine_aeiou All Other Wrox Books 2 February 22nd, 2005 02:58 AM
SQL "Last" instruction returns wrong value rjp Access VBA 0 August 31st, 2004 10:19 PM
access returns results but not when through ASP whyulil Classic ASP Databases 4 June 8th, 2004 11:18 PM
Paging in ADO.NET tknguyen ADO.NET 2 June 24th, 2003 09:40 PM





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