Click to See Complete Forum and Search --> : passing value


wayne.kw
07-19-2005, 11:47 PM
I am trying to pass the value of a textbox to a pop-up window on a different page when a button is clicked. I've tried using the Paramaters feature on the hyperlink properties, but I suspect I am not using the correct syntax or it won't do what I want it to.

page1.asp
----------
form called "form1"
textbox called "box1"
pop-up window called "open window 2"

window2.asp
----------
form called "form2"
textbox called "box2"

a. user types a value into "box1" on page1.asp
b. user clicks on hyperlink "open window2"
c. window2.asp opens with the value from box1 on page1 already in "window2"

buntine
07-20-2005, 01:27 AM
I assume your using the queryString collection.

Use:

Request.QueryString("NameOfItem")

Regards.

rrhodes
07-20-2005, 11:09 PM
You've got to get the value out of the posted form field first. Clicking on a standard href hyperlink won't capture the value from the input field. You've got to get it from processing the form post through a submit action.

Once you've got the posted form field value, using server side code you can write back some dynamically generated window onload javascript to launch your popup window with a QueryString parm.