ASP.NET - Update progress bar in modalpopup extender

Asked By vasu kakani on 10-Feb-11 12:47 PM
Hi All,

How to show the update progressbar for the button click event which is in popup control of modalpopup extender.
the button control is in update panel.where as the modalpopup extender is out side the update panel.
i am also using the below code in
<triggers>

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

</triggers>

div v replied to vasu kakani on 11-Feb-11 12:44 AM
hi,
 C#
    protected void btnInvoke_Click(object sender, EventArgs e)
    {
      System.Threading.Thread.Sleep(3000);
      lblText.Text = "Processing completed";
    }
<asp:ScriptManager ID="ScriptManager1" runat="server">
      </asp:ScriptManager>
      <asp:UpdateProgress ID="updProgress"
      AssociatedUpdatePanelID="UpdatePanel1"
      runat="server">
        <ProgressTemplate>       
        <img alt="progress" src="images/progress.gif"/>
         Processing...       
        </ProgressTemplate>
      </asp:UpdateProgress>
     
      <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
          <asp:Label ID="lblText" runat="server" Text=""></asp:Label>
          <br />
          <asp:Button ID="btnInvoke" runat="server" Text="Click"
            onclick="btnInvoke_Click" />
        </ContentTemplate>
      </asp:UpdatePanel>    
ref this link for more reference ...http://www.dotnetcurry.com/ShowArticle.aspx?ID=227