简体   繁体   English

使用ajax更新面板获取更新进度

[英]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. 如果要重定向到另一个页面,则可能不需要Ajax。 BTW you can simply put an UpdateProgress where ever an UpdatePanel exists. 顺便说一句,您可以简单地将UpdateProgress放在存在UpdatePanel的位置。 UpdateProgress' content will be showed automatically when a partial Postback occurs. 当发生部分回发时,UpdateProgress的内容将自动显示。

Hai subash Try this put this in your master page next to <Body> 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: .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