Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

Use barcode scanner in an aspx page?

I have a web application that might be needing a barcode scanner. Does anyone know if this is possible?
0
ranniedv
Asked:
ranniedv
  • 3
  • 2
1 Solution
 
TRUENEUTRALCommented:
This is very easy to do.  I have done it many times.

Just configure the bar code scanner to read Bar39 and append a line feed/carriage return after the input data.

Most scanners simply emulate keyboard strokes.

So the only thing you should really have to do to the program is put code in the keypress or keyup events of the controls that detects the enter key:

if KeyAscii=chr(13) then
'do whatever
end if

0
 
ranniedvAuthor Commented:
Remember, this is in a web page running on a browser... NOT a windows form...

Anyone???
0
 
TRUENEUTRALCommented:
No need to get snippy...

Again.. YES, it is possible... I assume you are running an ASP or HTML page?

Try placing a simple form in your page with nothing but a textbox and a button.

Run the page

Type something in the textbox

Hit the enter key

Did hitting the enter key cause the button to be pressed?
(the answer should be yes)
Most bar39 scanners are already configured to emulate this activity (sending keystokes with an enter at the end)

If your test did not result in the button being pressed, or if this test does not properly emulate what you are trying to do, then you will need to provide more information on what you are trying to do.
0
 
ranniedvAuthor Commented:
I got it! I got it! Someone demoed me last night and right of the box, the scanner worked into putting values in a textbox... I've worked with barcodes long long time ago and during those times, you still need to create a program to make it run, but now no more... thanks anyway!!!!! I guess I should give you the 100 points for the effort :)
0
 
TRUENEUTRALCommented:
Thanks for the points...

Ahhh, the good old days of DOS.  lol
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now