Hi Cheryl,
you can achieve this by opening a model window through
some javascript in the main page, then calling a function
in the original page from the new window when the ok
button is clicked that processes the data from the modal
window.
The original page can process the modal form data using
javascript with the example below, but you can extend
this to process the data server side by forcing a
postback.
alex
Here's a code example:
[Modal Window - ModalWindow.asp x] [C#]
function ModalButtonClic k()
{
if( window.dialogAr guments )
window.dialogAr guments.Process ModalData
(dropdown1.valu e,dropdown2.val ue,dropdown3.va lue);
window.close();
}
<SELECT id='dropdown1'>
//additional dropdownlists rendered here
<INPUT type=button onclick='ModalB uttonClick();'
value='submit'>
[main page] [C#]
function ShowModalWindow ()
{
window.showModa lDialog
('ModalWindow.a spx',this,'dial ogWidth:400px;d ialogHeight:2
00px;center;hel p:no;Yes;resiza ble:yes;status: no;scroll:no'
);
}
function ProcessModalDat a(string1,strin g2,string3)
{
//javascript to do something with the form data
passed in here
}
-----Original Message-----
Hi,
I have encounter a problem.Languag e use is C#. I would
like to open a newwindow (is a modal window, where I m not able to switch
from parent windowafter this window is open)from the parent window , where
there are 3dropdownlist s and a "OK" button. Upon clicking the
button, this windowwill close and the select of the dropdownlists will be
collect and send backto the parent window. But I am do not know how to do
it. Can somebody help.
Thanks
Cheryl
.