title: DropDownList Postback on ENTER Keypress Not Firing the Server-Side Event
body: <p>Greetings!</p>
  
  <p>I have a simple navigation menu consisting of an asp:DropDownList and an asp:Button.  Users select an item from the dropdown and click the button to go to the new URL.  I'd like to be able to able to support when users hit the ENTER key when a dropdown list item is selected so that it replicates the behavior as if they've clicked the button.</p>
  
  <p>Here's what I have thus far:</p>
  
  <pre><code>&lt;asp:DropDownList ID="ddlMenu"
                    runat="server"
                    onkeypress="if ((event.which &amp;&amp; event.which == 13) || (event.keyCode &amp;&amp; event.keyCode == 13)) {__doPostBack('GoButton',''); return false;}" /&gt;
  
  &lt;asp:Button ID="btnGoButton" runat="server" onclick="GoButton_Click"/&gt;
  </code></pre>
  
  <p>The button's click code is:</p>
  
  <pre><code>protected void GoButton_Click(object sender, EventArgs e)
  {
      string l_url = ddlMenu.SelectedItem.Value;
      Response.Redirect(l_url);
  }
  </code></pre>
  
  <p>However, everytime I hit the ENTER key, the page posts back but the button's client event handler doesn't fire.  Am I missing something?</p>