G
Guest
Hi everyone.
I have a button to pop up a report in a different window. Since it is a
popup, I needed to have it run in the client script. However, I need to
postback to the server before the popup window comes up to save the record.
What is happening now is that I'm doing the _doPostBack method before the
window open and then canceling the event after the window open so it won't
post back again. The problem is that the postback is sent and before it is
done, the window pops up and the record has not been saved yet. I have
tried setting a variable that says that it is printed, but the window onload
only occurs the first time. Does anyone know of a client-side event I can
hook into that works like the server side Page_Load or Page_Prerender event
so that I can wait on the popup until the save is done? Or are there any
other suggestions?
Thanks,
MH
I have a button to pop up a report in a different window. Since it is a
popup, I needed to have it run in the client script. However, I need to
postback to the server before the popup window comes up to save the record.
What is happening now is that I'm doing the _doPostBack method before the
window open and then canceling the event after the window open so it won't
post back again. The problem is that the postback is sent and before it is
done, the window pops up and the record has not been saved yet. I have
tried setting a variable that says that it is printed, but the window onload
only occurs the first time. Does anyone know of a client-side event I can
hook into that works like the server side Page_Load or Page_Prerender event
so that I can wait on the popup until the save is done? Or are there any
other suggestions?
Thanks,
MH