tags:

views:

24

answers:

1

I make a polling and want to popup the result immediately by window.open function after partial postback (updatepanel). But the popup is blocked by popup blocker. How can I fix it?

Here is my code:

protected void btnPollingSubmit_OnClick (object sender, EventArgs e)
{
    UpdatePolling();
}

protected void UpdatePolling()
{
   // update the polling result
     ...
     ...

 ScriptManager.RegisterStartupScript(btnPollingSubmit, this.GetType(), "PollingResult", "window.open('polling-result.aspx','','width=200,height=100'), true);   

}
+2  A: 

Don't use a popup but a Div positioned on top of the mainpage. Or even better and easier: use one of these "modal popups" from jQuery: best 22 jQuery modal popup plugins

Tim Schmelter