简体   繁体   中英

using ajax update panel for update progress

谁能指导我在从数据库中检索大记录时显示更新进度。在单击一个aspx页面的search in按钮时,它应该关闭该页面并在另一个aspx页面中显示更新进度。

If you you want to redirect to another page, you probably don't need Ajax. BTW you can simply put an UpdateProgress where ever an UpdatePanel exists. UpdateProgress' content will be showed automatically when a partial Postback occurs.

Hai subash Try this put this in your master page next to <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%; }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM