function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

pagination in visual force page

I displayed sobject records with pagination Next, Previous links with page limit 20 records.
In my account have 200 records. My requirement is 

Previous 1 2 3 4 5 Next
First time Page no1 is active and clicking on next button link will go next numbers
like google search links Can you please any body help me. Thank you





Refer the following link. it contains the sample codes for your requirement:


I hope this will helpful to you.




I have a post written about pagination. It doesn't have for particular pages, but it can atleast give you a start.


Hope this helps: VF Pagination