<asp:UpdatePanel ID="upPortfolioRpts" runat="server" UpdateMode="Conditional" > <ContentTemplate> <div style="float:left;"> <asp:UpdateProgress ID="UpdProgWait" runat="server" AssociatedUpdatePanelID="upPortfolioRpts"> <ProgressTemplate> <img src="images/simple.gif" alt="progress"/> </ProgressTemplate> </asp:UpdateProgress> </div> <asp:Button ID="BtnCreateExcel" runat="server" Text="Merge Report(s) To Excel" OnClick="BtnCreateExcel_Onclick" Font-Size="X-Small" OnClientClick="ShowProgress();"/> </div> </ContentTemplate> <Triggers> <asp:PostBackTrigger ControlID="BtnCreateExcel" /> </Triggers> </asp:UpdatePanel>
<br /> <br /> Javascript that shows the wait window<br /> <code> function ShowProgress() {<br /> document.getElementById('<% Response.Write(UpdProgWait.ClientID); %>').style.display = "inline";<br /> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)