title: alert dialogue during a process with javascript
body: <p>using <strong>ASP .Net MVC 4.0</strong> , <strong>vs10</strong> , <strong>MSSQL 2008</strong></p>
  
  <p>I have a stored procedure, which is executed in one of my page. it generally takes 30 to 50 second to execute. I want to show a alert dialogue where an gif image will be loaded during this process time. I am executing stored procedure with sqlcommand. The process started on clicking Process button. after finishing the process, the page returns another view.</p>
  
  <p>I have poor knowledge of javascript, so please show me a simple way.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Is it possible to show an image on buttonclick an do other codebehind process?</p>
  
  <p><strong>Like:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function showImage() {
          document.getElementById('Processing').style.visibility = visible;
      }
  &lt;/script&gt;
  
  &lt;div id="progessbar"&gt;
       &lt;img alt="Processing" src="../../Images/Processing2.gif" id="Processing" style="visibility:hidden"/&gt;
  &lt;/div&gt;
  </code></pre>