title: How to show/hide gif image when button click in asp.net
body: <p>I have a asp page where i have a button.When i click on the button i should display a gif image.When the process is completed ,again the images has to be hidden.</p>
  
  <p>Please find my below code behind </p>
  
  <pre><code>&lt;head runat="server"&gt;
      &lt;title&gt;Untitled Page&lt;/title&gt;
  
      &lt;script type="text/javascript" language="javascript"&gt;
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
          &lt;div style="display: none" id="dvloader"&gt;
              &lt;img src="Images/process_status.gif" /&gt;&lt;/div&gt;
          &lt;asp:Button ID="btnLoad" runat="server" Text="Load" OnClick="btnLoad_Click" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Please find the below code behind</p>
  
  <pre><code> protected void btnLoad_Click(object sender, EventArgs e)
      {
         // Show the gif image
          System.Threading.Thread.Sleep(5000);
          // hide the gif image
      }
  </code></pre>
  
  <p>How can i achive this ?</p>
  
  <p>Thanks.</p>