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

 

 

 

posted on 2008-10-17 20:59  poop  阅读(186)  评论(0编辑  收藏  举报