Passing Value from Webform 2 to Webform1 without refreshing webform1

A

Aitham alama

Hi There,

My question is as following,

I have a webform (Webform1) which contains one label control and command
button, when the user clicks the button another webform (Webform2) appears,
webform2 contains only one control which is the Calendar control, I want to
do the following

1- when the user selects a date from the webform2, I want the value
(selected date) appears in the label control in the webform1 without
refreshing webform1
2- Webform2 to be closed automatically after the date selection

Kind regards and thanks in advance
 
E

Eliyahu Goldin

To answer your question: You will need to open the second form from client
side in a separate browser window. Then, again on client side, it will have
to pass a result parameter back to the form 1.

The proper design: Calendar control should not be a separate web form. It
should be a DHTML date picker, one of the hundreds you can find and
download. It should be wrapped in a popup window with javascript call
createPopup.

Eliyahu
 
B

Bobby Ryzhy

you will have to use Javascript.

example:
window.opener.Form1.element_name.value = "xyz";

Bobby Ryzhy
bobby@ domain below
http://weekendtech.net

Hi There,

My question is as following,

I have a webform (Webform1) which contains one label control and command
button, when the user clicks the button another webform (Webform2) appears,
webform2 contains only one control which is the Calendar control, I want to
do the following

1- when the user selects a date from the webform2, I want the value
(selected date) appears in the label control in the webform1 without
refreshing webform1
2- Webform2 to be closed automatically after the date selection

Kind regards and thanks in advance


Bobby Ryzhy
bobby@ name of domain below
http://www.weekendtech.net
 

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

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top