有没有一种方法可以将单个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.
所以,我看不到你可以做到这一点.好问题虽然