Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
3 buttons is there in page. prevoius button and next button , refresh button . when i click on next button means it should display next records from db and previous button means it should display previous records and refresh means reload the current page . this is my requirement

What I have tried:

give me solution how to display previous and next records from db when i click on previous and next buttons
Posted
Updated 17-Apr-17 1:26am
v4
Comments
Karthik_Mahalingam 13-Apr-17 1:59am    
ajax call ?
Karthik_Mahalingam 13-Apr-17 2:10am    
show your code that you have tried.

1 solution

Maintain paging at your application side.
Steps to follow .

St 1: First select total record count initially .
st 2: Create a page object having page number,page count and fill them using record count.
St 3: Fetch first page from DB and show it to view and initialize counters for page and save page objects at view.
St 4: increment , decrements and reset page objects and fetch records from db on next , previous and reset events .
 
Share this answer
 
Comments
VenkataSeshu B 13-Apr-17 3:27am    
can send me links related this ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900