I have had a look at the threads on this site but they don't make sense to me i am a complete beginner with html and java.
What i want is when the user hits the enter button it fires the submit button click event.
here is the html code can someone please show me what code to put and where to put it please.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="myloggin.aspx.vb" Inherits="WebOrder.myloggin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>myloggin</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content=" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:image id="Image1" style="Z-INDEX: 101; LEFT: 56px; POSITION: absolute; TOP: 8px" runat="server"
Width="781px" ImageUrl="Title.gif" Height="67px"></asp:image><INPUT id="Submit1" style="Z-INDEX: 108; LEFT: 560px; WIDTH: 72px; POSITION: absolute; TOP: 240px; HEIGHT: 24px"
type="submit" value="Submit" name="Submit1" runat="server"><asp:label id="warnlbl" style="Z-INDEX: 107; LEFT: 648px; POSITION: absolute; TOP: 168px" runat="server"
Width="169px" Font-Names="Arial" Visible="False" ForeColor="Red" Font-Bold="True">Incorrect information</asp:label><asp:label id="Label2" style="Z-INDEX: 105; LEFT: 296px; POSITION: absolute; TOP: 197px" runat="server"
Width="149px" Font-Names="Arial">Password</asp:label><asp:label id="Label1" style="Z-INDEX: 104; LEFT: 288px; POSITION: absolute; TOP: 152px" runat="server"
Width="149px" Font-Names="Arial">Select Retailer Code</asp:label><asp:textbox id="pwd" style="Z-INDEX: 103; LEFT: 456px; POSITION: absolute; TOP: 192px" tabIndex="2"
runat="server" Width="170px" Font-Names="Arial" TextMode="Password"></asp:textbox><asp:dropdownlist id="uidddl" style="Z-INDEX: 102; LEFT: 456px; POSITION: absolute; TOP: 152px" tabIndex="1"
runat="server" Width="170px" Font-Names="Arial"></asp:dropdownlist></form>
</body>
</HTML>
What i want is when the user hits the enter button it fires the submit button click event.
here is the html code can someone please show me what code to put and where to put it please.
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="myloggin.aspx.vb" Inherits="WebOrder.myloggin"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>myloggin</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content=" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:image id="Image1" style="Z-INDEX: 101; LEFT: 56px; POSITION: absolute; TOP: 8px" runat="server"
Width="781px" ImageUrl="Title.gif" Height="67px"></asp:image><INPUT id="Submit1" style="Z-INDEX: 108; LEFT: 560px; WIDTH: 72px; POSITION: absolute; TOP: 240px; HEIGHT: 24px"
type="submit" value="Submit" name="Submit1" runat="server"><asp:label id="warnlbl" style="Z-INDEX: 107; LEFT: 648px; POSITION: absolute; TOP: 168px" runat="server"
Width="169px" Font-Names="Arial" Visible="False" ForeColor="Red" Font-Bold="True">Incorrect information</asp:label><asp:label id="Label2" style="Z-INDEX: 105; LEFT: 296px; POSITION: absolute; TOP: 197px" runat="server"
Width="149px" Font-Names="Arial">Password</asp:label><asp:label id="Label1" style="Z-INDEX: 104; LEFT: 288px; POSITION: absolute; TOP: 152px" runat="server"
Width="149px" Font-Names="Arial">Select Retailer Code</asp:label><asp:textbox id="pwd" style="Z-INDEX: 103; LEFT: 456px; POSITION: absolute; TOP: 192px" tabIndex="2"
runat="server" Width="170px" Font-Names="Arial" TextMode="Password"></asp:textbox><asp:dropdownlist id="uidddl" style="Z-INDEX: 102; LEFT: 456px; POSITION: absolute; TOP: 152px" tabIndex="1"
runat="server" Width="170px" Font-Names="Arial"></asp:dropdownlist></form>
</body>
</HTML>