?
Solved

Use barcode scanner in an aspx page?

Posted on 2003-02-25
5
Medium Priority
?
432 Views
Last Modified: 2013-11-18
I have a web application that might be needing a barcode scanner. Does anyone know if this is possible?
0
Comment
Question by:ranniedv
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:TRUENEUTRAL
ID: 8022690
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
 

Author Comment

by:ranniedv
ID: 8029895
Remember, this is in a web page running on a browser... NOT a windows form...

Anyone???
0
 
LVL 5

Accepted Solution

by:
TRUENEUTRAL earned 300 total points
ID: 8036657
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
 

Author Comment

by:ranniedv
ID: 8036809
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
 
LVL 5

Expert Comment

by:TRUENEUTRAL
ID: 8036944
Thanks for the points...

Ahhh, the good old days of DOS.  lol
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question