I am developing an searching tool...where i struck up with the paging concept..
meaning if i search in a folder the file is locating.Upto here no issue...i need to findout the solution for how many documents are being came fromsearch .....something like google...if it contains 20 pages then it should display 5 at a time with paging look like:
1 2 3 4 5 ....20 NEXT(Hyperlink)
if u have any idea please advise
This sounds like a string building problem, nothing to do with paging.
You want to build a string representing the state/results of your search.
YOu need to define what the string should look like for different number of pages. You give an example of the display for 20 pages. What should it look like for other values? What is the minimum needed for the ....? What should it look like if the user is looking at a page in the middle?
Define the full syntax of the string to be built and when the various parts of it should be diplayed.
i am searching documents and wants to limit the search results 10 per page..if dats exceeds then it should be shownin the second page..same as google search...and the functionality..
Have you defined what you want to show and when to show it?
More than "same as google", you'll need details to decide how to format the string.