You can do that by setting the DefaultButton attribute of the form in which the button is present.
Ex:
<form id=f1 defaultbutton="btnSubmit" runat="server">
<asp:textbox id="textbox1" runat="server"/>
<asp:button id="button1" text="btnSubmit" runat="server"/>
</form>
www.codecollege.NET
0 comments
Post a Comment