How to implement Paging


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: How to implement Paging

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Posts
    13

    How to implement Paging

    Hi,
    i have a Jsp Page called Items.jsp, in that i am displaying the items(64 items)on Items.jsp.
    But my problem is that i don't want to display all the 64 at a time, i want to display like page by page. lets say 20 Items per page.

    and it should display 1-20, 21-40, 41-60, 61-64...

    Plz help me to implement this and provide me the source code if u guys had it.

    Thanks in advance....


    Thanks,
    kris

  2. #2
    Join Date
    Oct 2004
    Posts
    311
    when a user clicks the link (1-20 for instance) just send two variables to the server: start and stop
    with start having a value of 1 and stop having a value of 20.
    With those values, you know where to start and stop looping your array of values.

  3. #3
    Join Date
    Mar 2006
    Posts
    13
    Thanks...

    Kris

  4. #4
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    255
    Also cross-posted on http://forums.devx.com/showthread.php?t=152842

    Check the reply there.
    Happiness is good health and a bad memory.

Similar Threads

  1. Sample code for ASP.NET DataGrid paging
    By Bharati in forum ASP.NET
    Replies: 0
    Last Post: 11-25-2005, 12:17 AM
  2. Replies: 0
    Last Post: 09-02-2005, 08:28 PM
  3. Easy and powerful paging system for datalists
    By Active Up in forum dotnet.announcements
    Replies: 0
    Last Post: 05-13-2003, 10:32 AM
  4. datagrid paging and sorting
    By Jim in forum ASP.NET
    Replies: 0
    Last Post: 11-12-2002, 09:36 PM
  5. Problem about implement interface
    By Arger in forum VB Classic
    Replies: 2
    Last Post: 09-28-2000, 06:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center