473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to integrate bar code scanner with asp.net application?

Please tell me the process of integrating barcode scanner with the asp.net application in brief,where i need to generate barcode images and read the barcode and store im my database.....
I am not getting how to start and how to integrate that barcode scanner with asp.net appliaction
please help me out
Oct 20 '10 #1
7 8918
Curtis Rutland
3,256 Expert 2GB
Short answer, you can't.

Long answer, you can't because ASP.NET executes on the SERVER, not the CLIENT. There's no way for you to interact with a barcode scanner on a client's machine with ASP.NET.
Oct 20 '10 #2
danp129
323 Expert 256MB
You can do it if you can require your end users to have JavaScript enabled.

If you can require that all your users use a scanner that will press return after entering the text, that will make life much easier as well, otherwise you'll be writing extra JavaScript.

You will need to find a free or commercial control that can generate the types of bar codes you plan to use.

Whenever the user has decided to start scanning, they will need to click a button. The button can either set focus on a input box on the same page or it can redirect you to a new page with an input box that is focused on page load.

In either case, with a scanner that presses return for them, each scan should submit the form. When the page reloads, JavaScript should and automatically focus the input box again and be ready for another scan.

If users do not have a scanner that presses return for them then it's pretty much the same but you will have to setup a timer to monitor the input box and write your own logic to determine if the user has scanned something.

Most importantly, you will need to use a search engine and search for examples of anything you don't know how to do and make an solid effort to complete each task yourself before asking for help. Be sure to ask JavaScript questions in the JavaScript forum.
Oct 22 '10 #3
Frinavale
9,735 Expert Mod 8TB
JavaScript is bound by rules that dictate that it cannot access the operating system.

Therefore, you cannot use JavaScript to access the drivers on the user's operating system to gain access to the barcode scanner.

You could consider using Silverlight to try and solve your problem.

-Frinny
Oct 22 '10 #4
Curtis Rutland
3,256 Expert 2GB
Silverlight is constrained by the same rules, Frinny. It lives inside a sandbox and isn't allowed to play with anything else. Even if you install it locally, it just has a bigger sandbox.
Oct 22 '10 #5
Frinavale
9,735 Expert Mod 8TB
See, I have read that too...and I have also read that you can break the sandbox rules but the browser first informs the user.

The thing is that, when I was working with sockets (which breaks the sandbox rules), the only time I saw a warning was when I was using IE...FireFox just worked.

-Frinny
Oct 22 '10 #6
danp129
323 Expert 256MB
How are you guys typing messages? Your keyboard and mouse require drivers at the OS level to type and click hyperlinks!

Honestly though you guys may be right about old tech that may have used COM ports which *MAY* have required special support in the application, however, any USB bar code reader that XP+ has built in HID support should work just fine, as well as any reader that attaches to an AT/PS2 port.

The reader basically types the bar code it reads into whatever window has focus. If a text field has focus in that window then you will see what was scanned. If the reader passes a carriage return then it would submit a web form, if not then you can monitor the input box with JavaScript.

Credit card readers are similar but I don't think they pass a return, instead control characters like */ or something, it's been a while since I've swiped one on a computer.
Oct 23 '10 #7
You can do the programmning yourself or use some 3-rd party barcode reading library.
May 14 '13 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Steve | last post by:
I will be starting to work on an e-commerce web site pretty soon, and one thing the user would like to do is to have a part of the site that he could use in the store for recording the transaction....
4
by: andersboth | last post by:
I want to run some code when my Windows Form Application is being shut down. I want to run this code when the Application is being shut down in the following situation: 1. The App is being...
0
by: Richard | last post by:
I have 2 projects that can run independently. One is built using Windows Forms Application (.NET) and the other is built on pure C++. Both project runs fine, but when I try to integrate them,...
0
by: sankara | last post by:
Hi, There is a website created using asp.net, that has to be built upon Project Web Access and conform to its look and feel standards. thanks in advance
3
by: gilles_perreault | last post by:
I'm trying to use the scanner on these units. Has anyone done this ? Thanks for your lights. *-----------------------* Posted at: www.GroupSrv.com *-----------------------*
0
by: rajaramanindia | last post by:
I have some doubt in integration. We have a java based web applications and .net based windows application. Example" Java Web applications having a grid with some datas. when the user will...
3
by: MLH | last post by:
With Application.FileSearch .NewSearch .LookIn = "C:\My Documents" .SearchSubFolders = True .FileName = "Run" .MatchTextExactly = True .FileType = msoFileTypeAllFiles End With My code pukes...
1
by: BanuPriyag | last post by:
Hi All Can we open Microsoft Word application in Java. Inside java interfaceMicrosoft word application should get opened and not the word file. One of the solution i received was using JIntegra's...
9
by: manojrana | last post by:
Can we store an array within another array in javascript var locat = new Array(); var element = new Array(); locat = element; or Can we use like this locat = "manoj";
0
by: AnagJohari | last post by:
if yes can you assist me that how can i develop this application any book or resource that is helpful to develop this application? what technologies i have to use to develop this application?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.