Link to home
Start Free TrialLog in
Avatar of juststeve
juststeve

asked on

Close a popup after postback

I have some aspx code(behind) evaluating a condition that, if true, should cause a child of the existing window to close. Javascript code as below would have been used to create the popup and I can call JS function that should close it.

>>
  top.open(theURL,'myWin','resizable=yes,width=760,height=470');
<<

The problem appears to be that the main window loses scope of the child because of a necessary postback. Is there a way to maintain a reference to the child so I can close it after the main postsback?

thx
--steve...
Avatar of aki4u
aki4u

did you tried to use html hidden field?
Avatar of juststeve

ASKER

Nope...got a sample?
ASKER CERTIFIED SOLUTION
Avatar of aki4u
aki4u

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thankx!