使用如下形式

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

 

代替如下形式:
 Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('删除成功!');</script>");

posted on 2010-10-14 10:40  佐伊凡  阅读(288)  评论(0编辑  收藏  举报