how to submit form when enter is pressed

RTT

Active member
Joined
Mar 16, 2005
Messages
26
Programming Experience
Beginner
VB.NET:
<form id="Form1" method="post" runat="server">
  <asp:textbox id="TxtEmail" tabIndex="1" runat="server" Width="272px" ToolTip="Enter your emailaddress for authentication"></asp:textbox>
  <asp:textbox id="TxtPassword" tabIndex="2" runat="server" Width="272px" ToolTip="Enter your domain password" TextMode="Password"></asp:textbox>
  <asp:linkbutton id="BtnLogin" tabIndex="3" runat="server">Login</asp:linkbutton>
</form>
This is the form as i use it for my user to enter thier login information. But now they have to click the link in order to log in. Is it possible to submit the form when 'enter' is pressed (like it's the case with input type="submit" in standard html forms).

does anyone know how to do this?
 
Top Bottom