Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am create a web application. I am use three textbox and two buttons.
I one textbox and button for search and remain two textbox and button use for login.
but my problem is when user enter the login name and password then press enter key then work search button in place of loggin button.

so give any idea for when enter text in search text box and press enter key then work search button. and when enter the login name and password and press enter key then work login button.
Posted

Answered a similar question today

Capture Enter Key in ASP.net[^]
 
Share this answer
 
Comments
Uday P.Singh 17-Jul-11 12:43pm    
nice links my 5!
Specify the Defaultbutton of the form to the "Logging in" button.
 
Share this answer
 
Comments
Rakesh From Patna 17-Jul-11 12:43pm    
how to set defaultbutton Logging in
Abhinav S 17-Jul-11 12:49pm    
See http://www.w3schools.com/aspnet/prop_webcontrol_panel_defaultbutton.asp
http://msdn.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlform.defaultbutton.aspx
Espen Harlinn 17-Jul-11 17:32pm    
Nice and simple, my 5
Abhinav S 18-Jul-11 0:32am    
Thank you Espen.
you can see this link
Click
 
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