Search code examples
c#asp.net-mvcimagebarcode-scanner

Acquiring the scan data from a barcode scanner Wedge, Simulation to AJAX serverside


I have a web application ASP MVC C#, and the users have a scanner at the desktop. They perform scans of goods.

Please help understand, how to connect with the scanner and acquire the scan from the user (is this a twain like driver standard)?

  1. How exactly, can you I get the scan data to my application, its a simple barcode.
  2. Is there a standard, or a protocol that I can register to read.
  3. Is there a framework that works well with scanners

Update 1: How can I control whether the data shows up/scans to the text field or simply sent to a backend AJAX post childAction, for e.g. [post] public .. PostedScanData(string ScannnedData) {.. can you please share a sample if possible


Solution

  • Normally a simple barcode scanner wil 'emulate' a keyboard/keypad and 'type' the numbers as they were typed on a keyboard. So when scanning, be sure a TextBox is selected.