This is a discussion on "page spanning" within the Classic ASP section. This forum, and the thread "page spanning are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
page spanning
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
page spanning
I wonder if anyone could help me on this one. At the moment when data is displayed from the database it is listed all on one page, extending down as far as its needs to. What I would like to do is limit it to a set number of records and span it over a number of pages which can be selected.
Does anyone know how to do this easily? Cheers John |
|
|
|
#2
|
|||
|
|||
|
sure thing dude, its called "paging", there are millions of examples out there, heres an easy one:
|
|
#3
|
|||
|
|||
|
Nice one mate, thats really cool. Cheers!
John |
|
#4
|
|||
|
|||
|
or use Recordset.getRows to pull all the records into an array and Loop thru only the ones you want to display.
|
|
#5
|
||||
|
||||
|
where in the code above smokie, do you determine how many records are shown on each page? maybe im just being dumb but....
|
|
#6
|
|||
|
|||
|
<blockquote id="quote" class="ffs">quote:<hr height="1" noshade="noshade" id="quote" />Originally posted by benbacardi
where in the code above smokie, do you determine how many records are shown on each page? maybe im just being dumb but.... rs.PageSize = 2 oh and don't use Request("intpage") - use Request.Querystring("intpage"). Otherwise expect random errors!!111! /:P |
![]() |
| Tags |
| page, spanning |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Best way to prevent access to page B except via page A? | Donny Bahama | PHP Forum | 1 | Apr 3rd, 2008 02:15 |
| Green bar of colour at bottom of page gets bigger the more page is extended | pixelgirl | Web Page Design | 1 | Apr 1st, 2008 01:27 |
| internal navigation, Linking from one page to a specific div in another page. | Oak | Web Page Design | 5 | Feb 8th, 2008 22:54 |
| Linking an outside page back to previous framed page | MJustison | Starting Out | 1 | Oct 18th, 2007 17:49 |
| A gap appears beween the Page Title and the Body Content of the page. | sovereign6 | Web Page Design | 6 | Dec 18th, 2006 19:14 |