Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters

Status
Not open for further replies.

nalbiso

Programmer
Aug 31, 2000
71
US
Hi

I want to be able to pass a parameter by a user clicking an icon on a page and having a text field in a search form filled out with a search term of Tortoise.

Example of icon hyperlink:
When I click on the icon, the form that I am trying to pass the parameter to shows up with the correct address ending of: searchresults.htm?SearchTerm=Tortoise
but the text box in the form does not display the search term of Tortoise as it is supposed to. Does anyone know why?

Thanks!
 
Because the ?SearchTerm= is part of the QueryString not the Form. If you look at Request.QueryString("Searchterm") and Request.Form("Searchterm") you will see two different values. The name "searchTerm" does not identify the textbox. You'll need Client Sice Script to fill in the text box.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top