View previous topic :: View next topic |
Author |
Message |
blueangell
Joined: 31 Jan 2006 Posts: 19
|
Posted: Wed Feb 22, 2006 11:01 pm Post subject: Search Box |
|
|
How can I add a search box to my site so users can find webpages on my site based on what they type in the search box? |
|
Back to top |
|
|
terri
Joined: 10 Oct 2004 Posts: 16
|
Posted: Thu Feb 23, 2006 9:49 am Post subject: |
|
|
Is the content of you website into a database? If it is you just need to search the database for the user entered keyword, and this will return all pages matching the keywor or phrase. |
|
Back to top |
|
|
twinkle
Joined: 31 Jan 2006 Posts: 79
|
Posted: Thu Feb 23, 2006 11:51 pm Post subject: |
|
|
Out of curiosity how is that returned in ASP? I am not familar with the database tie-ins for ASP. _________________ I shine |
|
Back to top |
|
|
Steve
Joined: 28 Feb 2006 Posts: 15
|
Posted: Tue Feb 28, 2006 11:11 pm Post subject: |
|
|
twinkle wrote: | Out of curiosity how is that returned in ASP? I am not familar with the database tie-ins for ASP. |
Its asp.net firstly.
Secondly, you'd set the search string as a variable, based on what the user enters.
This variable is checked against the content in the database.
Database connections are out of the scope of this thread though, there is alot of information on google about this. |
|
Back to top |
|
|
paul
Joined: 11 Oct 2004 Posts: 128
|
|
Back to top |
|
|
Darth
Joined: 01 Mar 2006 Posts: 9
|
Posted: Wed Mar 01, 2006 5:54 pm Post subject: |
|
|
Search functions are one of the easiest queries you can do.
It's an SQL query.
Actually getting it to be accurate and provide relevant results is where the challenge lies. |
|
Back to top |
|
|
Steve
Joined: 28 Feb 2006 Posts: 15
|
Posted: Tue Mar 21, 2006 6:27 pm Post subject: |
|
|
Not really Darth. Generally a simple search database query will bring back pretty relevant results.
It all depends what sort of data you are searching though. If its just text then its easy, but anything else can cause some problems. |
|
Back to top |
|
|
|