ASP Enable enter key
<p>I have a login box that I need to have submitted when enter is pressed. Below you are going to find part of the code. Please any help would be appreciated.</p>

<pre><code>&lt;div class="box-login clearfix"&gt;
    &lt;div class="box-login-header"&gt;
        &lt;h3&gt;
            Registered Users&lt;/h3&gt;
    &lt;/div&gt;
    &lt;div&gt;
        &lt;asp:Label ID="LblMessage" runat="server" ForeColor="Red"&gt;&lt;/asp:Label&gt;
        &lt;asp:RequiredFieldValidator ID="Rfv_LoginId" runat="server" ControlToValidate="TextLogInId"
            ErrorMessage="Login Id is required" ValidationGroup="A" Display="Dynamic"&gt;&lt;/asp:RequiredFieldValidator&gt;
        &lt;asp:RegularExpressionValidator ID="RevLoginId" runat="server" ControlToValidate="TextLogInId"
            ErrorMessage="Login id does not contain spaces,double quotes or +&amp;gt;&amp;lt;=';:,|/"
            ValidationExpression="[^ &amp;quot;+&amp;gt;&amp;lt;=':,|/]*$" ValidationGroup="A" Display="Dynamic"&gt;&lt;/asp:RegularExpressionValidator&gt;
        &lt;asp:RequiredFieldValidator ID="Rfv_Password" runat="server" ControlToValidate="TextPassword"
            ErrorMessage="Password is required" ValidationGroup="A" Display="Dynamic"&gt;&lt;/asp:RequiredFieldValidator&gt;
        &lt;asp:CustomValidator ID="CvPassword" runat="server" ClientValidationFunction="ValidatePassword"
            ControlToValidate="TextPassword" ErrorMessage="" Display="Dynamic"&gt;&lt;/asp:CustomValidator&gt;
        &lt;asp:RegularExpressionValidator ID="RevPassword" runat="server" ControlToValidate="TextPassword"
            ErrorMessage="Space is not allowed" ValidationExpression="[^ ]*$" ValidationGroup="A"
            Display="Dynamic"&gt;&lt;/asp:RegularExpressionValidator&gt;
        &lt;asp:Label ID="LblPassword" runat="server" ForeColor="#FF0066"&gt;&lt;/asp:Label&gt;
    &lt;/div&gt;
    &lt;p&gt;
        Please enter your GoCCL.com Login ID &amp; Password below&lt;/p&gt;
    &lt;ul&gt;
        &lt;li&gt;
            &lt;label for="cloginid"&gt;
                Login ID:&lt;/label&gt;
            &lt;asp:TextBox ID="TextLogInId" runat="server" CssClass="text-box" MaxLength="16" onblur="ClearMessage()"&gt;&lt;/asp:TextBox&gt;
        &lt;/li&gt;
        &lt;li&gt;
            &lt;label for="cpassword"&gt;
                Password:&lt;/label&gt;
            &lt;asp:TextBox ID="TextPassword" runat="server" TextMode="Password" CssClass="text-box"
                MaxLength="16" onblur="ClearMessage()"&gt;&lt;/asp:TextBox&gt;
        &lt;/li&gt;
    &lt;/ul&gt;
    &lt;asp:LinkButton ID="btnForgotPassword" CssClass="forgot" runat="server" Text="Forgot your Login ID or Password?"
        OnClick="btnForgotPassword_Click"&gt;&lt;/asp:LinkButton&gt;
    &lt;asp:ImageButton ID="CmdLogin" CssClass="btn-login" OnClick="CmdLogin_OnClick" OnClientClick="ClearMessage()"
        runat="server" ImageUrl="/stylesheets/bookccl/images/button/btn-login.gif" CausesValidation="true" /&gt;
    &lt;div class="box-login-fotter clearfix"&gt;
        &lt;p&gt;
            &lt;strong&gt;New to GoCCL? &lt;/strong&gt;
            &lt;asp:LinkButton ID="btnRegistration" runat="server" Text="Register Now" CssClass="register-new"
                OnClick="btnRegistration_Click"&gt;&lt;/asp:LinkButton&gt;
            to join the fun!&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>
