Ajax的UpdatePanel内无法弹出窗口的解决方法

来源:互联网 发布:燕十八mysql优化笔记 编辑:程序博客网 时间:2024/05/17 06:15

弹出提示: 

ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "alert", "alert('更新成功!')", true);

跳转:
ScriptManager.RegisterStartupScript(UpdatePanel1, this.GetType(), "click", "location.replace('UserManger.aspx');", true);

提示后跳转:

ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "click", "alert('更新成功!');location.replace('UserManger.aspx');", true);