On my web form I design some buttons (each of them have own buttonpressed event handlers) and one texbox, on which I register textchanged handler. The problem is that when I focused to textbox, the near standing button became the default button (became surrounded
by frame), and then, when enter pressed, raise two events - text changed and button pressed. But I want only one event! I have to clear this button event handler, and drag on the form another button, but it's not what I need.
Hello, in the following i will give you a link where you can view a pretty simple sample on how you can set a 'Default Button' for any textboxes on the webform. So with the help of this function it´s very easy to 'force' a default button for a textbox. Here
you should go:
Default Button for textboxes... HTH,
papa_vanya
Member
10 Points
2 Posts
Enter Key on textbox raises not only textchanged event!!!
Aug 08, 2003 08:14 AM|LINK
KBrocksi_SEC
Contributor
3382 Points
627 Posts
Re: Enter Key on textbox raises not only textchanged event!!!
Aug 08, 2003 10:42 AM|LINK