DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4
  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-24-2005, 11:17 PM
  2. Replies: 0
    Last Post: 09-02-2005, 07:28 PM
  3. Easy and powerful paging system for datalists
    By Active Up in forum dotnet.announcements
    Replies: 0
    Last Post: 05-13-2003, 09:32 AM
  4. datagrid paging and sorting
    By Jim in forum ASP.NET
    Replies: 0
    Last Post: 11-12-2002, 08:36 PM
  5. Problem about implement interface
    By Arger in forum VB Classic
    Replies: 2
    Last Post: 09-28-2000, 05:39 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links