We've got wedge type scanners that automatically send and [Enter] keystroke (#13) after a scan which was triggering the form submit on every scan. This code adds a little javascript to change the #13 received when in an edit control to a [Tab] char (#9): Textbox.Attributes.Add('if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) {event.keyCode=9;} '); |