title: Progress of a process in a website with c#
body: <p>I created a website with c# and I have a process that lasts between 1 and 4 seconds (uploading data from database).
  I want that I show a bar or image_process for waiting(from when I click on the button that import data from the database until displaying that data on my Gridview)</p>
  
  <p>I found this code but this code contains another button..I don't need another button..I want that my previous one import data and display the waiting image.</p>
  
  <pre><code> &lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
  &lt;/asp:ScriptManager&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
   &lt;ContentTemplate&gt;
    &lt;asp:Button ID="Button1" runat="server" 
              OnClick="Button1_Click" Text="Button" /&gt;
       &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
     &lt;asp:UpdateProgress ID="UpdateProgress1" 
     AssociatedUpdatePanelID="UpdatePanel1" runat="server"&gt;
    &lt;ProgressTemplate&gt;&lt;img src="animatedprogress.jpg"/&gt;&lt;/ProgressTemplate&gt;   
      &lt;/asp:UpdateProgress&gt;
  </code></pre>