1,<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
2,<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
你所用的控件:如GridView等
</ContentTemplate>
</asp:UpdatePanel>
1,2两个控件一起使用!
后台:ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "updateScript", "alert('保存成功')", true);