title: Asp.net auto response to client
body: <p>I have this table on my sql server database:</p>
  
  <ol>
  <li>name</li>
  <li>family</li>
  <li>address</li>
  </ol>
  
  <p>and i have a 2 user's:<br/></p>
  
  <ol>
  <li>User A</li>
  <li>User B</li>
  </ol>
  
  <p>i want to when User B insert new record into the table,show in User A gridView.<br/>
  i use this solution:<br/>
  User A web browser  has a this code:<br/></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          setTimeout("RefreshPage()", 5000);
  
      });
      function RefreshPage() {
         /* var url = "GetOrder.aspx";
          $(location).attr("href", url);
          */
          location.reload();
  
      };
  
  
  
  &lt;/script&gt;&lt;br/&gt;
  </code></pre>
  
  <p>that code refresh User A webpage every 5 second and in page load event i write a simple code to run select query and show in gridview.<br/>
  this method very crazy solution to do this.<br/>
  can i use other solution and how?</p>