Ajax更新面板中的进度条未显示

时间:2011-06-01 08:08:51

标签: asp.net ajax

我写了以下

 <asp:UpdatePanel ID="Download" runat="server">
     <ContentTemplate>
         <asp:Label ID="lblMessage"  runat="server" 
           Text="Click the link to download the Report:"></asp:Label>  
         <asp:LinkButton ID="lbtnDownload" runat="server"  
           OnClick="lbtnDownload_Click" Text="Download Excel Sheet"></asp:LinkButton> 
     </ContentTemplate>
     <Triggers>
         <asp:PostBackTrigger ControlID="lbtnDownload"/>
     </Triggers>
 </asp:UpdatePanel>

 <asp:UpdateProgress ID="download1" runat="server" AssociatedUpdatePanelID="Download">
     <ProgressTemplate> 
         <asp:Image ID="Image1" runat="server" ImageUrl"indicator.gif" " />  
     </ProgressTemplate>
 </asp:UpdateProgress>

但是进度条图像没有显示任何人可以说明原因

2 个答案:

答案 0 :(得分:2)

好的,首先要检查的是你肯定是成功回发了,还加了一个延迟间隔:

<asp:UpdateProgress DisplayAfter="0" ID="download1" runat="server"
   AssociatedUpdatePanelID="Download">

答案 1 :(得分:2)

删除以下内容:<asp:PostBackTrigger ControlID="lbtnDownload"/>

相关问题