Click here to Skip to main content
15,612,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

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 method, this can be achived but i need to perform this task using

can any body suggest, what to do???

thanks in advance

1 solution

Have a look at this article that has something similar as a part of itself: Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]
Share this answer
Abhijit Parab 18-Jun-12 2:40am    
Ya, i know this. but can i able to find parent form control using window.opener method?

thats is my actual problem...
Sandeep Mewara 18-Jun-12 4:54am    
I doubt if ShowDialog & Window.Opener go hand in hand.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900