I have a button to open a new window with code below
public void OpenWindow(string redirect /* in */, string attributes /* in */)
{
StringBuilder txtScript = new StringBuilder();
txtScript.Append("<script language=javascript>\n");
txtScript.Append(" window.open ('" + redirect + "',null , '" + attributes + " ');" + "\n");
txtScript.Append("</script>");
this.Page.RegisterStartupScript("MsgBox",txtScript.ToString());
}
protected void btnResult_Click(object sender, EventArgs e)
{
OpenWindow("reportresult.aspx", "");
}
but when I put it into updatepanel,it does not work.