473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to Handle Many Page Links in a Search?

Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages back, I
want to show 10-20 page links and hide the rest. Also, the closer user
gets to the last visible pages, the more hidden page links become
visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.

Sep 25 '07 #1
6 1734
This is commonly referred to as "paging"

google for examples:

paging asp -.net
"VUNETdotUS" <vu******@gmail.comwrote in message news:11*********************@d55g2000hsg.googlegro ups.com...
Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages back, I
want to show 10-20 page links and hide the rest. Also, the closer user
gets to the last visible pages, the more hidden page links become
visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.

Sep 25 '07 #2
VUNETdotUS wrote:
Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages back, I
want to show 10-20 page links and hide the rest. Also, the closer user
gets to the last visible pages, the more hidden page links become
visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.
Does this help?
http://www.aspfaq.com/show.asp?id=2120
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 25 '07 #3
On Sep 25, 11:47 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
VUNETdotUS wrote:
Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages back, I
want to show 10-20 page links and hide the rest. Also, the closer user
gets to the last visible pages, the more hidden page links become
visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.

Does this help?http://www.aspfaq.com/show.asp?id=2120
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
I am not sure where exactly is the code sample on that page. I think
it shows paging only, not hidden page links...
Thanks.

Sep 26 '07 #4
VUNETdotUS wrote:
On Sep 25, 11:47 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
>VUNETdotUS wrote:
>>Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages
back, I want to show 10-20 page links and hide the rest. Also, the
closer user gets to the last visible pages, the more hidden page
links become visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.

Does this help?http://www.aspfaq.com/show.asp?id=2120

I am not sure where exactly is the code sample on that page. I think
it shows paging only, not hidden page links...
Thanks.
"hidden"??

Oh! You want to send ALL the links to the client and hide/unhide them in
response to user actions? You should post this to a client-side
scripting group - it has nothing to do with asp. Try
microsoft.public.scripting.jscript
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 26 '07 #5
On Sep 26, 11:42 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
VUNETdotUS wrote:
On Sep 25, 11:47 am, "Bob Barrows [MVP]" <reb01...@NOyahoo.SPAMcom>
wrote:
VUNETdotUS wrote:
Search results on my site started to show a large number of page
links. I never had to deal with it before but it is time now. I am
trying to come up with a good logic / idea how to display a large
number of page links without showing all of them at once.
For example, if user is searching for "pets" and gets 50 pages
back, I want to show 10-20 page links and hide the rest. Also, the
closer user gets to the last visible pages, the more hidden page
links become visible. Something like Google does...
If somebody worked with it before, could you share with ideas, or
suggestions, or good examples to look at? Is there a standard way to
implement this, perhaps?
Thanks.
Does this help?http://www.aspfaq.com/show.asp?id=2120
I am not sure where exactly is the code sample on that page. I think
it shows paging only, not hidden page links...
Thanks.

"hidden"??

Oh! You want to send ALL the links to the client and hide/unhide them in
response to user actions? You should post this to a client-side
scripting group - it has nothing to do with asp. Try
microsoft.public.scripting.jscript
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
"Hidden" may not be a correct word. I thought it is better to do it on
aserver side with ASP since it handles my paging.
Simply, if you look at Google, searching the word "ASP", hit 50th page
and you'll find that it shows the range of pages from 40 to 60,
leaving 50th page in the middle.
That's kind of what I need.
Thanks

Sep 26 '07 #6
VUNETdotUS wrote:
"Hidden" may not be a correct word. I thought it is better to do it on
aserver side with ASP since it handles my paging.
Simply, if you look at Google, searching the word "ASP", hit 50th page
and you'll find that it shows the range of pages from 40 to 60,
leaving 50th page in the middle.
That's kind of what I need.
Thanks
You've got a list of links, right? So you only want to send a subset
(page) of those links to Response with each Request, right? So, the
first step is to decide how you are going to store that list of links
between page requests: database, text file, session variable ...
The links also need a sortable ID so they can be grouped into pages.
Then you need to create a mechanism to allow the user to select which
page of links he wants to see. Perhaps a series of links with the start
# of the page included in the querystring the way Google does it.
Then you need to write the serverside code to read the start # from the
querystring, extract the corresponding page from the stored list of
links and write it to Request.
As Jon says, there's zillions of examples of doing this available via
Google.

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Sep 26 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Fred Yarbrough | last post by:
We have a simple html page that contains a long list of documents that users can hyperlink to. The entries are currently in alphabetical order and we would like to implement some type of page...
5
by: George | last post by:
Hi, Anyone has the background for explaining? I have made a search on my name and I have got a link to another search engine. The link's title was the search phrase for the other search engine...
5
by: Sally B. | last post by:
Hello, I searched, but couldn't find answers--probably because I'm not sure what this is called... Anyway, I have about 50 web pages and I want to have some JavaScript that will read in a list of...
32
by: sandy | last post by:
I have a hobby website at: http://www.montana-riverboats.com which also resolves as: http://montana-riverboats.com ...without the www. One address has a Google page rank of three. The other...
9
by: Jason | last post by:
I have translated my website into Japanese, so if someone visits this page in English: http://dheera.net/jason/about/interests/music/index.html I want them to be able to click on word...
42
by: smerf | last post by:
Using javascript, is there a way to trap an external page inside a frame? I've seen scripts to break out of frames, but nothing to keep a page trapped in a frame.
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
3
by: Aaron | last post by:
I'm trying to parse a table on a webpage to pull down some data I need. The page is based off of information entered into a form. when you submit the data from the form it displays a...
3
Ajm113
by: Ajm113 | last post by:
Ok, I am trying to get page numbering going here. Since I have two other strings going on the address bar I need to have it so if a user wanted to goto another page wont loss what he or she is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.