title: Execute javascript within aspx timer
body: <p>I have a javascript with adds a searchbox over my gridview. It loads with the page:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      $('&lt;thead&gt;&lt;/thead&gt;').prependTo('table#ctl00_MainContent_GVOPL').append($('table#ctl00_MainContent_GVOPL tr:first'));
      $('table#ctl00_MainContent_GVOPL tbody tr').quicksearch({
          reset: true,
          resetClass: "resetButton",
          resetLabel: "Zurücksetzen",
          position: 'before',
          attached: 'table#ctl00_MainContent_GVOPL',
          stripeRowClass: ['odd', 'even']
      });
      $(".qs_input").focus();
  });
  </code></pre>
  
  <p></p>
  
  <p>With a timer I update the gridview. After the first update the searchbox disappear. The idea is to add the javascript to execute also in the timer. But how can I do that? </p>
  
  <p>Timer: </p>
  
  <pre><code>&lt;asp:Timer ID="Timer1" runat="server" Interval="5000" ontick="Timer1_Tick" /&gt;
  
  protected void Timer1_Tick(object sender, EventArgs e)
  {
      ...build my gridview...
  }
  </code></pre>