Hi,
I am creating a Help window using .aspx page.
On button click i am openning that window, by calling following code.
winref = window.showModalDialog("HelpWindow.aspx?" + QueryStr, "HLP", strHelp);
while openning this window, i am also sending Parent form control id, that control can be textbox or label.
That window consist of certain number of fields. on selection of these any of fields , i want to assaign selected value to my parent form control.
i used following code for this
eval('window.opener.document.getElementById('CtrlName').value="' + AsgnText + '"')
But window.opener not able to find that CtrlName or not getting that control.
Using window.open() method, this can be achived but i need to perform this task using
window.showModalDialog
()
can any body suggest, what to do???
thanks in advance