ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "dele", "alert('删帖成功');window.close()", true); 原来好好的,现在又不能执行了,不弹出确认框,也不关闭。怒了,看了几个小时了还是这样。长夜漫漫,搞不出来睡不着啊。我能想到的就是我的页面不止一个UpdatePanel ,后面还有UpdatePanel2,而且 像 ScriptManager.RegisterStartupScript(UpdatePanel2, this.GetType(), "dele", "alert('删除成功');", true);
ScriptManager.RegisterStartupScript(UpdatePanel