Using UpdateProgress
Listing 1. Use the UpdateProgress control to provide visual feedback as an UpdatePanel control triggers an asynchronous postback operation. ![]() <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Button ID="btnSubmit" runat="server" Text="Get Data" /> <asp:UpdateProgress ID="upProgress" runat="server" DynamicLayout="false" DisplayAfter="1000"> <ProgressTemplate> <img src="/Images/loading_animation_liferay.gif" /> </ProgressTemplate> </asp:UpdateProgress> <asp:GridView ID="GridView1" runat="server"> ...Code omitted for brevity </asp:GridView> </ContentTemplate> </asp:UpdatePanel> |