方法1:
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('添加成功!');</script>");
方法2:(已经过时)
public void Alert(String warning) { Page.RegisterStartupScript("hint","<script defer='defer'>window.alert('" + warning + "')</script>"); }