title: Async trigger for an update panel refreshes entire page when triggering too much in too short of time
body: <p>I have a search button tied to an update panel as a trigger like so:</p>
  
  <pre><code>&lt;asp:Panel ID="CRM_Search" runat="server"&gt;
      &lt;p&gt;Search:&amp;nbsp;&lt;asp:TextBox ID="CRM_Search_Box" CssClass="CRM_Search_Box" runat="server"&gt;&lt;/asp:TextBox&gt;
      &lt;asp:Button ID="CRM_Search_Button" CssClass="CRM_Search_Button" runat="server" Text="Search" OnClick="SearchLeads" /&gt;&lt;/p&gt;
  &lt;/asp:Panel&gt;
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="CRM_Search_Button" /&gt;
      &lt;/Triggers&gt;
      &lt;ContentTemplate&gt; 
       /* Content Here */
      &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>In my javascript I use jQuery to grab the search box and tie it's keyup to make the search button click:</p>
  
  <pre><code>    $($(".CRM_Search_Box")[0]).keyup(
          function () {
              $($(".CRM_Search_Button")[0]).click();
          }
      );
  </code></pre>
  
  <p>This works perfectly, except when I start typing too fast. As soon as I type too fast (my guess is if it's any faster than the data actually returns) the entire page refreshes (doing a postback?) instead of just the update panel.</p>
  
  <p>I've also found that instead of typing, if I just click the button really fast it starts doing the same thing.</p>
  
  <p>Is there any way to prevent it from doing this? Possibly prevent 2nd requests until the first has been completed? If I'm not on the right track then anyone have any other ideas?</p>
  
  <p>Thanks,<br/>
  Matt</p>