You'd have to out put some javascript to your page after its postback.
Use the Page.RegisterStartupScript method.
popup codebehind:
void button_onclick(...)
{
// add code to save data to DB
yourjavascript = "<script language='javascript'>";
yourjavascript += "self.parent.location = self.parent.location.href;
// this will refresh your parent window.";
yourjavascript += "self.close(); // close popup";
yourjavascript += "</script>"
Page.RegisterStartupScript( yourJavascript):
}
"thechaosengine" <none> wrote in message
news:10*********************@news.microsoft.com...
Hi all,
I need to be able to cause the following chain of events after clicking an
asp:button but I don't know how to do it. I'd really appreciate any advice
on this or alternative approaches:
The window in question is a popup asking the user to provide some details.
The primary window is still open in the background
1. Button on popup clicked
2. Information on form saved to database
3. Popup closes
4. Primary window refreshes or is redirected
I really hope someone can advise on how to achieve this
Thanks all
tce