1<asp:panel defaultbutton="btnsubmit"runat="Server">2<table width="100%"Border="0"cellspacing="0"cellpadding="0">3<tr>4<TD width="26%"align=" Right"> User name:</td>5<TD width="74%">6<asp:textbox id="txtUserName"runat="Server"cssclass="Logintxt"></asp:TextBox>7</td>8</tr>9<tr>Ten<TD align=" Right"> Password:</td> One<td> A<asp:textbox id="Txtpassword"runat="Server"Textmode="Password"cssclass="Logintxt"></asp:TextBox> -</td> -</tr> the<tr> -<td> </td> -<td> </td> -</tr> +<tr> -<td> </td> +<td> A<asp:button id="btnsubmit"runat="Server"text=""cssclass="logbtn"onclick="btnSubmit_Click"/> at<%--<a href=""> Forgot password? </a>--%></td> -</tr> -</table> -</asp:Panel>
Add a container (Code)Using the ASP. DefaultButton Property
Add the Panel control and set the DefaultButton:
<asp:panel defaultbutton= "button_id" runat= "Server" ></asp:Panel>
ASP. NET Background Add enter Enter event