title: asp:login form does not submit when you hit enter
body: <p>I am having an issues while using the <code>&lt;asp:login&gt;</code> tag.  When a user clicks the "login" button, the form will process correctly.  However, when the user hits the enter key, the form self submits and does not process the login, whether it was correct information or not.  I am using a combination of MasterPages, and Umbraco.</p>
  
  <p>My aspx code looks like this:</p>
  
  <pre><code> &lt;%@ Master Language="C#" MasterPageFile="/masterpages/AccountCenter.master" CodeFile="~/masterpages/Login.master.cs" Inherits="LoginPage" AutoEventWireup="true" %&gt;
  
  &lt;asp:Content ContentPlaceHolderID="RunwayMasterContentPlaceHolder" runat="server"&gt;
      &lt;div class="loginBox"&gt;
   &lt;div class="AspNet-Login-TitlePanel"&gt;Account Center Login&lt;/div&gt;
   &lt;asp:label id="output" runat="server"&gt;&lt;/asp:label&gt;
   &lt;asp:GridView runat="server" id="GridResults" AutoGenerateColumns="true"&gt;&lt;/asp:GridView&gt;
   &lt;asp:Login destinationpageurl="~/dashboard.aspx" ID="Login1" OnLoggedIn="onLogin" runat="server" TitleText="" FailureText="The login/password combination you provided is invalid." DisplayRememberMe="false"&gt;&lt;/asp:Login&gt; 
  &lt;/div&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>In the actual rendered page, I see this javascript on the form:</p>
  
  <pre><code>&lt;form method="post" action="/dashboard.aspx?" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm"&gt;
  </code></pre>
  
  <p>That javascript function is defined as:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
  //&lt;![CDATA[
  function WebForm_OnSubmit() {
  if (typeof(ValidatorOnSubmit) == "function" &amp;&amp; ValidatorOnSubmit() == false) return false;
  return true;
  }
  //]]&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>The javascript is always evaluating to True when it runs.</p>