title: How to trigger an UpdatePanel by a TextBox control?
body: <p>Consider the following code:</p>
  
  <pre><code>&lt;label&gt;Search:&lt;/label&gt;&lt;asp:TextBox runat="server" ID="search" ClientIDMode="Static" OnKeyUp="$('#searchButton').click();" /&gt;&lt;asp:Button runat="server" ID="searchButton" ClientIDMode="Static" /&gt;
  &lt;asp:UpdatePanel runat="server" UpdateMode="Conditional"&gt;
      &lt;ContentTemplate&gt;
          &lt;asp:GridView runat="server" DataSourceID="EntityDataSource1" 
              AllowPaging="True" AllowSorting="True" AutoGenerateColumns="true" PageSize="20"
              Width="400" /&gt;
      &lt;/ContentTemplate&gt;
      &lt;Triggers&gt;
          &lt;asp:AsyncPostBackTrigger ControlID="searchButton" /&gt;
      &lt;/Triggers&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>The button will trigger an update of the panel. I wanted to trigger an update by a keydown of the search field, so I'm 'faking' it with a jQuery statement that clicks the button. I'm wondering... there must be a better way... right!?</p>