Wait while popup screen is shown
Hi all,
I've got the following problem. I have a button on my screen which does two things:
- fire a javascript function to open a popup window
- fire a procedure in my code behind file.
But... the procedure in my code behind file should be fired when the popup window is closed...
Does anyone know how to achieve this goal?
Thanx in advance.
Re: Wait while popup screen is shown
You could make an invisible ServerSide button on the window.opener and call window.opener.__doPostBack('hidden_button',''); in javascript. The window.opener will fire the click event for the hidden button thus your code runs when the other page is done.