Groups | Blog | Home
all groups > asp.net > february 2004 >

asp.net : Processing Enter Key


Abhram Jose
2/5/2004 10:44:16 PM
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

Steve C. Orr [MVP, MCSD]
2/6/2004 12:42:06 AM
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/showdoc.asp?id=28&menuid=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



[quoted text, click to view]

AddThis Social Bookmark Button