De behaviour of the ENTER key in an ASP.NET application can vary greatly between browsers and versions. Worse: It can change depending on the content of your page. Depending on this browser and version, you may also observe the form getting submitted, but the event handler code not executed...
Especialy when using a pagemaster you will generaly observe the enter key taking a "wrong turn", and use one of the buttons on the master page instead of your form.
For a discussion with more detail regardign the background and effect of this issue see this thread
Solution;
By encapsulating parts of your application in a PANEL object, you can define the default button to be used. Below is a sample login form (but it realy can be any form) which is encapsulated between the panel definitions;
'<asp:Panel ID="Panel1" runat="server" DefaultButton = "Button1">
<div>
<div class="style_Heading">Login page</div><br />
<table class="table95">
<tr>
<td>
Username</td>
<td>
<asp:TextBox ID="tb_Username" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Password</td>
<td>
<asp:TextBox ID="tb_Password" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Button ID="Button1" runat="server" Text="Inloggen" />
</td>
<td>
(Your ip address wil also be validated)</td>
</tr>
<tr>
<td>
</td>
<td>
</td>
</tr>
</table>
</div>
</asp:Panel>
The important lines to focus the ENTER key to the login button here are the definition of the panel and associated default button
<asp:Panel ID="Panel1" runat="server" DefaultButton = "Button1">
and the closing tag
</asp:Panel>