Results 1 to 6 of 6

Thread: Multiple pages on recordsets

  1. #1
    matthewralston
    Guest
    Hello...

    I often have an ASP (and now a few PHP) pages that effectively get a recordset and print the entire contents in a table.

    Obviously if there are lots of records the table ends up huge and takes longer for the browser to load. I've seen on many sites (these forums, search engines like Yahoo! and Google, etc) that a page will list say 10 or 20 records then have links going to the next, pevious, first & last pages. On Google there is is even a string of numbers allowing you to navigate straight to a specific page.

    So...the big question! Can someone show me how to do this please?

    I'd like to be able to do it in ASP & PHP.

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    If you are using ADO you can do it. Try the AbsolutePage property.

  3. #3
    matthewralston
    Guest
    Yes, I did have a play around with that and a few other properties like AbsolutePosition, PageSize & PageCount but I couldn't get it to work.

    Can someone please show me a quick example please?
    Or if you've done it but can't be bothered simplifying the code I don't mind sifting through a working page's code...

  4. #4
    Addicted Member
    Join Date
    Sep 2000
    Posts
    219
    You need to set the CursorLocation property to adUseClient. Then it will work.


    Click here for an example from MSDN

  5. #5
    matthewralston
    Guest
    I'll give it a go...

  6. #6
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    See this Interesting tutorial.
    http://www.stardeveloper.com/asp_paging_1.asp
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width