Wednesday, March 28, 2012

Set default button pressed when the user press the return key

Hi

ive got a textbox and a button on a page. I want it so whenever the user types something in the textbox and then press their return key, the form button gets pressed.

How do i do that? set which button gets pressed when the user press the 'return/enter' key on their keyboard.

how someone can help

thanks

Check out this post for 3 great ways to make a button the default:

http://forums.asp.net/thread/1671669.aspx

0 comments:

Post a Comment