UpdateProgress linked to Multiple UpdatePanel controls
Is there a way to have a single UpdateProgress control associated with mupltiple UpdatePanel controls? something like this:
开发者_开发知识库<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">.....
Remove the AssociatedUpdatePanelID from the tag and it will work as you want.
It will directly work from properties pane of Update Progress, you can set target panel.
But, generally in most system, one progress can be targeted to single update panel control.
I don't think so. Trying this programmatically, it insists on having a string ID for the UpdatePanel, and gives no indication that you can associate a collection of UpdatePanels with a particular UpdateProgress control.
UpdateProgress1.AssociatedUpdatePanelID = "UpdatePanel1";
From the Metadata:
Summary:
// Gets or sets the ID of the System.Web.UI.UpdatePanel control that the System.Web.UI.UpdateProgress
// control displays status for.
So, I can't see that you can do this. Good question though.
精彩评论