如何解决Ajax Update面板中的进度栏未显示
| 我写了以下 <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>
但是进度条图像没有显示,任何人都可以告诉为什么
解决方法
删除以下内容:
<asp:PostBackTrigger ControlID=\"lbtnDownload\"/>
, 好的,首先要检查的是,您肯定已成功发回邮件,还添加了一个延迟间隔:
<asp:UpdateProgress DisplayAfter=\"0\" ID=\"download1\" runat=\"server\"
AssociatedUpdatePanelID=\"Download\">
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。