title: handling enter press in <asp:textbox
body: <p>I have an asp.net textbox which I want to use as a search box. </p>
  
  <p>I wasn't planning on having a button, just allowing the user to type their search keywords into the textbox and press enter.</p>
  
  <pre><code>&lt;div id="search-bar"&gt;
      &lt;asp:TextBox ID="txtSearch" runat="server" &gt;&lt;/asp:TextBox&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I get the "enter press" to call a method, or post back the page with keywords in URL parameters, e.g. <code>search.aspx?keywords=this&amp;that</code>?</p>