转载自:http://blog.csdn.net/tongdengquan/article/details/6980434 //1.ScriptManager 2.UpdatePanel1 ScriptManager.RegisterStartupScript(UpdatePanel1,this.GetType(), "", "<script>alert('删除失败!');</script>", false);