BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

Last post 08-04-2008 2:09 PM by abmoore. 15 replies.

Sort Posts:

  • BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    12-01-2006, 8:39 AM
    • Loading...
    • pstatho
    • Joined on 08-31-2006, 12:32 PM
    • Posts 21

    When you have a simple UpdatePanel with a Trigger and UpdateProgress where AssociatedUpdatePanelID is specified, the UpdateProgress template does not appear at all. I am using Beta 2. Here is a simplified version:

    <form id="form1" runat="server">
     
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
     <asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
      <ContentTemplate>
       <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
      </ContentTemplate>
      <Triggers>
       <asp:AsyncPostBackTrigger ControlID="Button1" />
      </Triggers>
     </asp:UpdatePanel>
     <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="UpdatePanel1" DisplayAfter="0" runat="server" DynamicLayout="false">
      <ProgressTemplate>
       Loading...
      </ProgressTemplate>
     </asp:UpdateProgress>
     <
    asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
     </div>
    </form>

    The CodeBehind is simply:

    protected void Button1_Click(object sender, EventArgs e)
    {
    	System.Threading.Thread.Sleep(1000);
    	TextBox1.Text = DateTime.Now.ToString();
    }

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    12-06-2006, 5:11 AM
    Answer
    UpdateProgress can display well when using AssociatedUpdatePanelID and Triggers,and you need to attach some javascript to add InitializeRequest and EndRequest.Here is a useful link with sample codes for your reference.
    http://ajax.asp.net/docs/ViewSample.aspx?sref=UpdateProgressOverview2



  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    12-06-2006, 12:03 PM
    • Loading...
    • pstatho
    • Joined on 08-31-2006, 12:32 PM
    • Posts 21

    Thanks for the response.

    I would consider your example a workaround to the bug. In my example in the original post, clearly the UpdateProgress in associated to the UpdatePanel. Anything that causes the updatepanel to do an AsyncPostback should cause the UpdateProgress associated with it to display.

    My real page has 4 UpdatePanels, so now I will have to match each AsyncTrigger to each one of my 4 UpdateProgress (I wanted 4 seperate UpdateProgress on purpose).

    Hope this gets addressed in a future version.

    Thanks,
    Perry

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    01-04-2007, 3:32 AM
    • Loading...
    • MindaugasS
    • Joined on 12-04-2006, 1:23 PM
    • Lithuania
    • Posts 13

    Hello

    Will this be fixed in RTM version?
    As this is still a problem in RC...

     Mindaugas

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    01-04-2007, 6:29 PM
    • Loading...
    • xerxesb
    • Joined on 01-04-2007, 11:13 PM
    • Posts 1

    There are 2 conditions here that i've discovered:

    1 - The button is located in the UpdatePanel control
    In this condition, the UpdateProgress is triggered and is displayed irrespective of whether the AssociatedUpdatePanelID is set on the UpdateProgress.

     
    2 - The button is located OUTSIDE the UpdatePanel control
    In this condition, if the AssociatedUpdatePanelID is set on the UpdateProgress control, then the control is NOT displayed during async postback. However if you don't set the AssociatedUpdatePanelID, then the UpdateProgress IS displayed (presumably because it is associated  at a page level).

     

     This reeks like a bug to me. Irrespective of whether the button is located inside or outside of the UpdatePanel, I've got the trigger on the panel set to fire an async postback when the button is clicked. Therefore when the button is clicked, the updatepanel will refresh and that should notify the progress (especially if AssociatedUpdatePanelID is set).

     I can provide a repro of this, or explain further if necessary.

     
    Thanks,
     
    -X
     

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    01-04-2007, 8:10 PM
    Hi Mindaugas,
        ASP.NET AJAX RTM will be released a little later than this month according to the plan - but not far off now. Wish all of these issues will be resolved in Ajax RTM. Let's pay attention to Ajax updates from this website - http://Ajax.asp.net.
  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    01-29-2007, 8:45 AM
    • Loading...
    • pstatho
    • Joined on 08-31-2006, 12:32 PM
    • Posts 21
    This bug is still present in the RTM release Sad
  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    03-21-2007, 11:59 AM
    • Loading...
    • Bot
    • Joined on 03-20-2007, 10:33 AM
    • Posts 1
    Has this been fixed yet?
  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    03-26-2007, 12:23 PM
    • Loading...
    • dhlennon
    • Joined on 10-31-2005, 7:58 PM
    • Posts 6

    I'm not sure you can necessarily call this bug, although the documentation on expected behaviour, as with all the AJAX base and toolkits controls is scant.

    However as long as you ensure the control raising the event is in an update panel, and include your updateprogress control in the same panel (with it's AssocUpdatePanelID set to this panel) you shouldn't find any problems. You can use this technique to have multiple progress controls associated to different initiating controls in one page.

    I am accepting this as behaviour by design rather than a bug unless I hear to the contrary from MS.

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    03-27-2007, 9:55 PM
    • Loading...
    • Wallym
    • Joined on 06-02-2003, 1:10 PM
    • Tennessee
    • Posts 357
    • ASPInsiders
      TrustedFriends-MVPs

    Here is the documentation on the UpdateProgress.  Its at http://ajax.asp.net/docs/overview/UpdateProgressOverview.aspx

    You associate an UpdateProgress control with an UpdatePanel control by setting the AssociatedUpdatePanelID property of the UpdateProgress control. When a postback event originates from an UpdatePanel control, any associated UpdateProgress controls are displayed.

    I would consider the current implementation a bug.  The UpdateProgress is not performing as the documentation states.  This is very frustrating because the control simply does not perform as it is documented.

    Wally 

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    04-03-2007, 1:11 PM
    • Loading...
    • zam1104
    • Joined on 04-03-2007, 4:57 PM
    • Posts 1

    I'm a noob at ajax.net, but if you are having problems, what worked for me is putting the triggering control (like a dropdown) within an UpdatePanel, and then pointing the appropriate Progress indicator to that panel (via AssociatedUpdatePanelID).  Don't point the Progress control to the UpdatePanel containing the new content.

    for large update panels with more than one control, you are screwed though.

    it really seems to me the indicator should be set to the panel whose content is being updated, not the source of the postback event.
     

     

     

     



     

     

     

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    04-28-2007, 6:41 AM
    • Loading...
    • koistya
    • Joined on 03-04-2006, 4:36 AM
    • St. Petersburg [rus]
    • Posts 34

    For me it also seem like a bug, since it doesn't behave as stated in documentation as well is it should behave in my opinion.

    And.. it wasn't fixed in the final version of AJAX 1.0 Crying

    My LinkedIn Profile - ASP.NET C# Ninja | My News Feeds
  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    05-23-2007, 9:43 AM
    • Loading...
    • BenVinci
    • Joined on 05-17-2007, 9:19 AM
    • Posts 2

    Not sure how anyone can suggest this isn't a bug.  Basically you can't have your action button (for example) outside of your updatepanel and have an update progress. 

    The nice side affect of not using AssociatedUpdatePanelId is that if you have other update panels on the page then they will also trigger this updateprogress as well as their own.

    Great......

  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    01-10-2008, 7:02 AM
    • Loading...
    • Kiros
    • Joined on 09-05-2007, 3:25 PM
    • Posts 14
    Is there any solutions for this problem? I've had action button outside the updatepanel also and updateprogress doesn't show anyway - only if move action button inside updatepanel:(.
  • Re: BUG: UpdateProgress does not display when using AssociatedUpdatePanelID and Triggers

    02-25-2008, 10:47 AM
    • Loading...
    • hayashiryo
    • Joined on 12-12-2006, 9:19 AM
    • Posts 32

    Hi all,

    I was also looking for a solution. And I found it!!!

    Refer to this article at CodeProject - http://www.codeproject.com/KB/ajax/UpdateProgress.aspx

    Basically, all u need to do is just to add in some javascript. Remember to update the javascript to your control ID.

    All the best.

    Hayashi Ryo
Page 1 of 2 (16 items) 1 2 Next >