I have 2 controls inside an update panel.
The first is a single line text box. The other is a listbox control.
I'm trying to come up with a barcode scanning system and have this idea below almost working, with one exception.
Here's what I've got...
When the page loads the focus is set to the textbox.
The user scans a member card and the id is entered into the textbox.
The textbox has a .textchanged event that resolves the scanned id and then lists that member's name in the listbox, but keeps the id as the listbox value.
Here's the problem...
The page utilizes the ClientScriptManager with an "onkeyup" event on the textbox, with an autopostback command. So when the MemberId is scanned, the .textchanged event is called, the name is resolved and shown in the list box. This all seems to work in Firefox but in IE8 the .textchanged event fires so quickly that sometimes the wrong name is resolved as a result of it not taking the entire member id before the event is fired.
I want to create a delay in the onkeyup event so that it waits 500 milliseconds before firing the .textchanged event.
View Complete Post