Dieter G
Dieter G

Reputation: 958

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">.....

Upvotes: 15

Views: 11910

Answers (3)

Harshal Soni
Harshal Soni

Reputation: 1

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.

Upvotes: 0

Scott
Scott

Reputation: 331

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

Upvotes: 33

Ralph Lavelle
Ralph Lavelle

Reputation: 5769

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.

Upvotes: -1

Related Questions