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

前端之家收集整理的这篇文章主要介绍了asp.net-ajax – UpdateProgress链接到多个UpdatePanel控件前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
有没有一种方法可以将单个UpdateProgress控件与Mupltiple UpdatePanel控件相关联?这样的:
  1. <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  2. <ContentTemplate>
  3. .....
  4. </ContentTemplate>
  5. </asp:UpdatePanel>
  6.  
  7. <asp:UpdatePanel ID="UpdatePanel2" runat="server">
  8. <ContentTemplate>
  9. .....
  10. </ContentTemplate>
  11. </asp:UpdatePanel>
  12.  
  13.  
  14. <asp:UpdateProgress ID="UpdateProgress3" runat="server" AssociatedUpdatePanelID="UpdatePanel1,UpdatePanel2">.....

解决方法

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

从元数据:

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

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

猜你在找的asp.Net相关文章