Help with passing data from popup

G

Guest

Hi,
I am able to pass data from a popup back to a textbox. Now I need to pass to
a different textbox. Here is what I have. I have a web page with two textbox
(datefrom and dateto) and two buttons at the end of each textbox. When either
button is clicked it pops up a small form with a calender control. The user
selects a date and click ok. I am able to pass data back to one of the
textbox because of one textbox with the value txtValue. Button1.Attributes.Add

("onclick", "window.returnValue = document.getElementById('txtValue').value;
window.close(); return false;")


How can I now pass to the other textbox txtvalue2?
 
B

bruce barker

you can only pass back a scaler (int,string,date) with window.returnValue
because all objects are destroyed at window close. you could concat the
values with a pipe and spilt on the other side.

-- bruce (sqlwork.com)


| Hi,
| I am able to pass data from a popup back to a textbox. Now I need to pass
to
| a different textbox. Here is what I have. I have a web page with two
textbox
| (datefrom and dateto) and two buttons at the end of each textbox. When
either
| button is clicked it pops up a small form with a calender control. The
user
| selects a date and click ok. I am able to pass data back to one of the
| textbox because of one textbox with the value txtValue.
Button1.Attributes.Add
|
| ("onclick", "window.returnValue =
document.getElementById('txtValue').value;
| window.close(); return false;")
|
|
| How can I now pass to the other textbox txtvalue2?
|
|
|
 

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,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top