Search functionality on the home page

G

Guest

Hello

I am trying to implement 'Search' (Basic Keyword search) functonality on a site. Home page has a search text box and a 'GO' button. When users will type in a keyword and presses 'GO', URL has to be refreshed with the 'Search Page' URL [So I am eliminating Server.Transfer] and results must be displayed. My customer does not like search terms to be passed through the URL [So passing data through QueryString is eliminated]. Is there anyway that I can accomplish this without the use of Session variables

Appreciate your help

Thanks - Brian
 
S

S. Justin Gengo

Brian,

The easiest way would be to store the search words in a session variable
from within the "Go" button's click event. Then redirect to the search page
and retrieve the search words from the session variable.

Another option would be to store the search words in a cookie on the client
machine and again retrieve them on the search page.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche


Brian said:
Hello,

I am trying to implement 'Search' (Basic Keyword search) functonality on a
site. Home page has a search text box and a 'GO' button. When users will
type in a keyword and presses 'GO', URL has to be refreshed with the 'Search
Page' URL [So I am eliminating Server.Transfer] and results must be
displayed. My customer does not like search terms to be passed through the
URL [So passing data through QueryString is eliminated]. Is there anyway
that I can accomplish this without the use of Session variables?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top