cyberhedgehog

导航

Ajax的UpdatePanel内弹出窗口问题

在ajax中的UpdatePanel弹出对话窗,可以使用: 

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);

posted on 2009-04-20 17:33  HedgeHog  阅读(276)  评论(0编辑  收藏  举报