ClientScript.RegisterStartupScript(this.GetType(), "doOpen", "open();", true);
ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "myscript", "open();", true);
写错了,那个是有局部刷新的
ClientScript.RegisterStartupScript(ClientScript.GetType(), "myscript", "");
这个最简单了