<asp:ScriptManager ID="ScriptManager" runat="server" />
    <asp:UpdatePanel ID="upTest" runat="server">
        <ContentTemplate>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
            <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
            <div style="display: inline">
                <asp:UpdateProgress ID="UpdateProgressMain" runat="server" AssociatedUpdatePanelID="upTest">
                    <ProgressTemplate>
                        <img src="/Images/loading.gif" alt="" />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </div>
            <asp:Button ID="btn" runat="server" Text="显示" OnClick="btn_Click" />
        </ContentTemplate>
    </asp:UpdatePanel>如上面,如何在UpdatePanel中点更新后,在他的UpdateProgress 显示之前,执行一段JS然后在更新完隐藏UpdateProgress 时执行一段JS
其实我要的就是,点更新的时候隐藏掉按钮,显示图片,更新完显示按钮隐藏图片谢谢