Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
4.00/5 (2 votes)
See more:
I have 3 lacks records in my Database.I need to bind those records to gridview with page size 20.When I click on next page it is taking more time to load next page.


Please help me.
Posted
Comments
agent_kruger 21-Feb-14 3:55am    
please post your code.

Wild guess as code not provided is that you are getting all records and filling some.
So, if on one page you get 20 records then there is no need to get 3 lack records. You can get top 20 records at a time and display it and on next page get another 20 records.
 
Share this answer
 
v2
 
Share this answer
 

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