加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net-ajax – UpdateProgress链接到多个UpdatePanel控件

发布时间:2020-12-15 23:29:10 所属栏目:asp.Net 来源:网络整理
导读:有没有一种方法可以将单个UpdateProgress控件与Mupltiple UpdatePanel控件相关联?这样的: asp:UpdatePanel ID="UpdatePanel1" runat="server" ContentTemplate ..... /ContentTemplate/asp:UpdatePanelasp:UpdatePanel ID="UpdatePanel2" runat="server" C
有没有一种方法可以将单个UpdateProgress控件与Mupltiple UpdatePanel控件相关联?这样的:
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
     .....
     </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
     <ContentTemplate>
     .....
     </ContentTemplate>
</asp:UpdatePanel>


<asp:UpdateProgress ID="UpdateProgress3" runat="server" AssociatedUpdatePanelID="UpdatePanel1,UpdatePanel2">.....

解决方法

我不这么认为以编程方式尝试,它坚持为UpdatePanel提供字符串ID,并不表示可以将UpdatePanels的集合与特定的UpdateProgress控件相关联.
UpdateProgress1.AssociatedUpdatePanelID = "UpdatePanel1";

从元数据:

Summary:
        //     Gets or sets the ID of the System.Web.UI.UpdatePanel control that the System.Web.UI.UpdateProgress
        //     control displays status for.

所以,我看不到你可以做到这一点.好问题虽然

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读