Maybe I should try searching for Enter key first....
You can intercept the client side enter keypress event of the text box and
then click do what you want using javascript code.
Here's a good example:
http://www.kamp-hansen.dk/pages/show...d=21&menuid=18
Or you might try using this free control.
http://www.metabuilders.com/tools/DefaultButtons.aspx
And here's a good article on the subject:
http://www.allasp.net/enterkey.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at
http://www.able-consulting.com
"Abhram Jose" <ab*****@yahoo.com> wrote in message
news:Ox**************@TK2MSFTNGP11.phx.gbl...
I have written an ASP.Net application.
It has several edit box to enter data. How to program in such way that
when the user hits enter key focus will go to next edit box (required control )
and so on ?
Thanks for your suggestions.
Abhram Jose
"Dan" <da*@dontspam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Consider a simple form with a textbox and button.
Is there a way to handle the common situation where a user presses
"return" rather than clicks on the button.
I can already detect the "return" key press using the textbox's onkeypress
event and now what I'm looking for is something like:
onkeypress="if 'return' key pressed, then button.click=True"
Any ideas?