本文介绍了残疾人的UpdateProgress一整页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已签出该解决方案:Is有没有一种方法来禁用的UpdateProgress某些异步回发?

I have checked out this solution: Is there a way to disable UpdateProgress for certain async postbacks?

但是,这将禁用加载我控制了!

But this disables my controls from loading at all!

我有我的母版页的的UpdateProgress是整个网站引发的,但在某些特定的网页我想它被禁用。

I have an UpdateProgress in my master page that is triggered throughout the entire site, but on certain pages I would like for it to be disabled.

我不想prevent加载控制,我只是想prevent的UpdateProgress从雨后春笋般冒出来,在所有的页面加载。

I don't want to prevent the control from loading, I just want to prevent UpdateProgress from popping up at all for a page load.

推荐答案

更​​新进度呈现为一个DIV。例如。如果您有类似

Update Progress renders as a DIV. E.g. if you have something like

<asp:UpdateProgress ID="xupProgress" runat="server"  >
  <ProgressTemplate>
            <img src = "images/LOADING.GIF" alt="Loading..."  />
  </ProgressTemplate>
</asp:UpdateProgress>

将呈现为

<div id="xupProgress">
  <img src = "images/LOADING.GIF" alt="Loading..."  />
</div>

知道了这一点,你可以添加一个风格的页面永久隐藏了DIV:

Knowing this you can add a style to those pages that permanently hides that DIV:

#xupProgress {
    display:none !important
}

这篇关于残疾人的UpdateProgress一整页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 10:44