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 October 21st, 2003, 08:30 PM
Authorized User
 
Join Date: Sep 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default user input number of records

hi, i need help with how to let user enter the pagesize in textbox, (with default = 10, on display when nothing is chosen).

my page already works with constant ipagesize=10, but i need it to be dynamic.

i tried using if-else statements with request.form, but it doesnt work. it says "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another." at line: "rs.PageSize = iPageSize"

code:
if isnull(pageform) then
    iPageSize=10
    session("page")=pageform
else
    session("page")=pagestring
    iPageSize=pagestring
end if

thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix number of records ceema Crystal Reports 1 December 18th, 2006 02:43 PM
Show number of records Vision G Access 2 June 3rd, 2006 03:01 AM
Delete X number of records slgknjn Access 1 August 22nd, 2004 08:24 AM
User choose number records to display per page jripke74 Classic ASP Databases 4 July 12th, 2004 11:19 AM
Number of records Pharasite Classic ASP Databases 4 July 1st, 2004 02:00 AM





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