if i want to pass in my value for confirmation box!!! so lets say i want to delete item no 1 so i checked the check box then when i pressed the delete button. the popup box come
Suppose we have the WindowTrigger.aspx which contains a button as shown below and which invokes the following script and executes and which opens the new page WindowContainer.aspx using showModalDialog.
The above script contains the array declaration 'theAdmin' which is passed to Child window using 2nd argument as shown
The following code is in WindowContainer.aspx which contains a listbox and a button,on click of the button the argument will get intialized to corresponding selected Texts and selected Values of the listbox.
Now the output will be "044;040;" and "Chennai;Hyderabad;" respectively.In this way we can pass values(here theAdmin) from parent form to child form,and the result can also be used in parent form(there is no lose of scope to the parameter).