Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
if i enter in the textbox then i need to work click event of the loginButton without go to the cursor in the button
Posted

Set the defaultbutton of the form to the login button.
XML
<form id="form1" runat="server" defaultbutton="btnLogin">
 
Share this answer
 
Wrap the controls in an Panel and set the DefaultButton property the id of the button that will cause the submit to happen.

See here[^].
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900