Search code examples
c#asp.netevent-handlingbarcodebarcode-scanner

Fire an event automatically after barcode scanner input


I have a textbox on an asp.net page. I use a barcode scanner to get the barcode number into that textbox. I need to then automaticaly fire an event directly after the text box recieves that input. the only event that is exposed is the TextChanged event which doesnt achieve what i need. I am using c# for the code behind.

Regards


Solution

  • Use TextChanged event with AutoPostBack=true.

    Also ensure that your scanner sends a carriage return after scanning(normally with scanning a code from the manual).