Paging like goooooooooooooogle
FYI
Hi guys,
Most of Guys asking how to set page 1,2,3,4 ..... so on ,
so that i post this link regarding paging,
its easy to implement,
Go through this links and create your own paging,
http://www.servletsuite.com/servlets/pagertag.htm
If you want sample example with Database and with out,
please feel free to mail me reg this..
# 5
> If you want sample example with Database and with out,
> please feel free to mail me reg this..
Please, don't do that. This topic will become worthless for us and worthful for spambots. Just post the code here or post at least a link to a page where you can view or download the code.
# 6
> > If you want sample example with Database and with
> out,
> > please feel free to mail me reg this..
>
> Please, don't do that. This topic will become
> worthless for us and worthful for spambots. Just post
> the code here or post at least a link to a page where
> you can view or download the code.
this will be so much fun, watching hundreds of kids post their email address for years and years hoping to get complete homework solutions sent to them by someone who's long gone.
# 8
I have done this same thing in our project ,
if you need code of feel free to write me.
I will send it to you...
I had used this logic...
1. count the number of records found from search
2.divide the no of record by 10,25 or 50 (depends upon how many records you want to show in a page)
3.the result is in floating value something like 20.144.. round it in to the 21
4.if the TotPage>10 you need the Back and Next option
5.maintain the begin and end counter for printing the page number
6.maintain the Next counter value , NextCounter incremented by one when we click the Next button and decremented by one when we click the back button
ex if you are in 1-10 page link if you click the next you will get 11-20 page links if you again click the next you will get the 21-30 page links
the another main think is Next button should be disable in last page link
I have implented this concept in our project and fully succeed it