ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old April 24th, 2000, 07:15 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
Creating a simple record counter in a table

<i><b>Originally posted by : KevinM (mullarkey@fs5.ee.umist.ac.uk)</b></i><br />ASP NEWBIE QUERY...<br /><br />An MS Access table is returned via a simple text box search and viewed on a asp page 25 records at a time. Also on the page are 'prev', 'Next' and numbers as hyperlinks to navigate between pages.<br /><br />What I want to do is add a column to the table that puts a simple record/line number. So you would have 1 to 25 on the first page, 26 to 50 on the second and so on.<br /><br />Now I used to be able to do this when I used command buttons as the 'prev' and 'next'. <br />I simply carried Ln (Line number value) as a hidden field when one of the buttons was clicked.<br />But how do I carry the value over to the next page now that there is no form to submit the value?, as I am using a querystring to return the records on the next page.<br /><br />The variables I have at my disposal are..<br />intPageNum ' The page number<br />RecordCount 'The total number of records returned<br />PageCount ' The total number of pages<br />PageSize ' The number of records per page (25, although varies if it is the last page)<br /><br />I have this problem when developing dbs in Access as there is no built in feature to get the actual 'record/line number'.<br /><br />Is there a built in method using asp/vbscripts?<br />Is there a formula that I just can't see with the above variables?<br />Or if there's a way of passing Ln to the next page (no cookies!) then I would appreciate any help<br /><br />Many Thanks<br /><br />Kevin M<br />

Reply With Quote
  #2  
Old April 26th, 2000, 01:15 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
<i><b>Originally posted by : steve</b></i><br />http://aspfree.com/authors/steveh/paging/Default.asp<br /><br />check this demo out. Its a start, email me at sschofield@aspfree.com if this isn't helpful<br /><br /><br />------------<br />KevinM at 4/24/2000 4:15:39 PM<br /><br />ASP NEWBIE QUERY...<br /><br />An MS Access table is returned via a simple text box search and viewed on a asp page 25 records at a time. Also on the page are 'prev', 'Next' and numbers as hyperlinks to navigate between pages.<br /><br />What I want to do is add a column to the table that puts a simple record/line number. So you would have 1 to 25 on the first page, 26 to 50 on the second and so on.<br /><br />Now I used to be able to do this when I used command buttons as the 'prev' and 'next'. <br />I simply carried Ln (Line number value) as a hidden field when one of the buttons was clicked.<br />But how do I carry the value over to the next page now that there is no form to submit the value?, as I am using a querystring to return the records on the next page.<br /><br />The variables I have at my disposal are..<br />intPageNum ' The page number<br />RecordCount 'The total number of records returned<br />PageCount ' The total number of pages<br />PageSize ' The number of records per page (25, although varies if it is the last page)<br /><br />I have this problem when developing dbs in Access as there is no built in feature to get the actual 'record/line number'.<br /><br />Is there a built in method using asp/vbscripts?<br />Is there a formula that I just can't see with the above variables?<br />Or if there's a way of passing Ln to the next page (no cookies!) then I would appreciate any help<br /><br />Many Thanks<br /><br />Kevin M<br />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > Creating a simple record counter in a table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT