views:

610

answers:

2

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">.....
+1  A: 

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.

Rafe Lavelle
+3  A: 

Remove the AssociatedUpdatePanelID from the tag and it will work as you want.

Scott
Thanks for you reply Scott,Yes that is also an option - that means that I should probably have a single update progress control on the page that is used by all Update Panel controls, otherwise your page will light up like a Christmas tree if none of them are associated to a specific update panel - +1 for your answer.
Dieter G