IF you have more than one button in the page, and you hit enter it seems like a gamble to which one will be activated, so my question is can you specify which BUTTON is clicked when someone hit ENTER.
Unless one of those buttons already has the "focus" (either by the user clicking but then releasing the button or by using the Tab key, or it's focused through JavaScript), then
none of the buttons are recorded as having been clicked. Rather, an ASP.NET page simply "posts back". Anyway, that is my understanding and experience.
Pop over to here: http://www.net-language.com/CodeExample.aspx?i=596 Helped me out with the same problem. You get to tell each control which Button to click when the user presses the Enter key..
smoothbugger
Member
170 Points
34 Posts
Hitting Enter - Which button ?
Sep 18, 2003 10:52 AM|LINK
SomeNewKid
All-Star
45894 Points
8027 Posts
Re: Hitting Enter - Which button ?
Sep 18, 2003 01:23 PM|LINK
pjmcb
Contributor
2234 Points
459 Posts
Re: Hitting Enter - Which button ?
Sep 18, 2003 01:27 PM|LINK
I never gave a damn about the meterman until I was the man who had to read the meter.
NicButler
Participant
1885 Points
384 Posts
Re: Hitting Enter - Which button ?
Sep 18, 2003 02:18 PM|LINK