[英]Progress bar in web application using C# and asp.net
您可以對忙碌指示器使用UpdateProgress控件,這很容易:
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0">
<ProgressTemplate>
<div>
<img src="../Resources/Images/indicator.gif" />
Loading...
</div>
</ProgressTemplate>
</asp:UpdateProgress>
但是進度條將需要更多的工作。 您需要運行一個后台線程來完成工作,然后需要定期回發以檢查會話變量的值,以獲取當前的進度。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.