This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have 100 records and I display 10 per page. So I get 10 links on my page. What I want to do is display 5 links and a next button. When the user clicks on the 5th link it should display the next 5 links.
For eg (looks like this now) 1 2 3 4 5 6 7 8 9 10
I need like 1 2 3 4 5 next>>
if I click on 1 2 3 4 link it should display the same as above.. Only if clicked on 5th link i need to display
<<prev 6 7 8 9 10 next>>
below is the for loop I tried but I am not getting the desired effect.