从进度中排除更新面板 [英] exclude an update panel from progress
本文介绍了从进度中排除更新面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
伙计们,我有一个更新进度,可以更新页面上的所有更新面板.
我想做的是从该进度中排除更新面板.
guys, i have an update progress that progress all update panels on the page.
what i am trying to do is to exclude an update panel from that progress.
what do you think?
推荐答案
您可以在页面上拥有多个UpdateProgress
控件,并使用AssociatedUpdatePanelID
属性,可以确保<仅当更新某个UpdatePanel时才显示c0>.
知识库在这里:
链接1 [链接2 [ UpdateProgress类 [
You can have multipleUpdateProgress
controls on the page, and by using theAssociatedUpdatePanelID
property, you can make sure that theUpdateProgress
is only shown when a certain UpdatePanel is updated.
Knowledgebase here:
Link 1[^]
Link 2[^]
UpdateProgress Class[^]
如果我们在updateprogress内部使用div,然后可以根据需要隐藏并显示它.
参见代码:
if we use a div inside the updateprogress we can then hide and show it as necessary.
see the code:
function EndRequest(sender, args) {
for (i = 0; i < sender._updatePanelIDs.length; i++) {
if (sender._updatePanelIDs[i] == '<%= UpdatePanel1.UniqueID %>') {
document.getElementById('<%= UpdateProgress1.ClientID %>').firstChild.style.display = 'block';
}
}
}
function BeginRequest(sender, args) {
for (i = 0; i < sender._updatePanelIDs.length; i++) {
if (sender._updatePanelIDs[i] == '<%= UpdatePanel1.UniqueID %>') {
document.getElementById('<%= UpdateProgress1.ClientID %>').firstChild.style.display = 'none';
}
}
}
没有什么像人类的意志.
There is nothing like human will.
这篇关于从进度中排除更新面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文