簡體   English   中英

使用ajax更新面板獲取更新進度

[英]using ajax update panel for update progress

誰能指導我在從數據庫中檢索大記錄時顯示更新進度。在單擊一個aspx頁面的search in按鈕時,它應該關閉該頁面並在另一個aspx頁面中顯示更新進度。

如果要重定向到另一個頁面,則可能不需要Ajax。 順便說一句,您可以簡單地將UpdateProgress放在存在UpdatePanel的位置。 當發生部分回發時,UpdateProgress的內容將自動顯示。

Hai subash嘗試將其放在您的主頁中<Body>旁邊

<asp:UpdateProgress ID="UpdateProgress1" runat="server"
                 DynamicLayout="false" DisplayAfter="0">
<ProgressTemplate>


<div class="loading" style="padding-left:5px; margin-bottom:5px;">
    Loading...&nbsp
</div>
</ProgressTemplate>
</asp:UpdateProgress>

.CSS:

.loading {
   background-color:#404040;
height:23px;position:fixed;font-weight:bold;-moz-border-radius-bottomleft:3px;-webkit-

border-bottom-left-radius:3px;   -moz-border-radius-bottomright:3px;-webkit-border-bottom-right-radius:3px;
color:#fff;   top:0px;   left:45%; }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM