微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

有没有一种方法可以将单个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.

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

原文地址:https://www.jb51.cc/aspnet/250433.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐