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.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.
PostBackEvent. No one even said it was niffty. I think it's niffty. (http://www.vbforums.com/showthread.php?t=329597&highlight=PostBackEvent)
<script language="JavaScript">function ExternalDone(){__doPostBack('extDoneEvent','');}//<!-- raises the PostBackEvent of the PostBackEvent Control named extDoneEvent -->
0 comments:
Post a Comment