I have page, where user can choose where he wants to copy library element. Since copying can take longer time, I'd like to give some information that actually something is going on. It is also important that I'm using dialog.master for displaying this page in modal dialog.

To show processing message, I created UpdatePanel with label:

<asp:UpdatePanel ID="Infobox" runat="server">
    <div class="ui-state-highlight">
      <asp:Label ID="StatusLabel" runat="server" Text="">

I also created UpdateProgress to display spinner image and text that something is going on:

<asp:UpdateProgress ID="Progress" runat="server"
  <img alt="Postep" src="/_layouts/images/ajax-loader.gif" />Trwa
  przenoszenie zasobu...</ProgressTemplate>

I also added handler to OK button click event of dialog.master where I perform actual copying and after it is finished, I set text of StatusLabel. But content of UpdateProgreess never shows up, only the text of status label after copying is finished. I tried to register OkButton as UpdatePanel's trigger, but with no luck. I tried:

  <asp:PostBackTrigger ControlID="OkButton" /><%--That gives exception that OkButton cant be found within update panel--%>


  <asp:AsyncPostBackTrigger ControlID="OkButton"
  EventName="Click" />

I think what I'm looking for is way to make OkButton trigger update on UpdatePanel.

2 Answers 2


Try to keep all relevant controls (including buton) inside updatepanel. No need to use trigger here. If you keep button outside, it will be a postback and you will not see updateprogress.


since what you are trying to achieve is to show some kind of loading or processing indicator due to the long running operation. Have you tried SharePoint SPLongOperation

Hope this helps

  • shouldn't this be a comment instead of an answer ?
    – Steve B
    Jan 4, 2012 at 9:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.