Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I want to perform barcode scan and and retrive data from database on the basis of barcode scan of the product.I am facing problem in how to enter the barcode during scanning product while inserting product and how can i retrive details based on barcode scan while sales in mvc4 asp.net.

What I have tried:

1.http://www.c-sharpcorner.com/UploadFile/75ceb2/scan-barcode-and-verify-data-from-database-using-web-service/
2.http://www.codeproject.com/Articles/296533/Using-a-bar-code-scanner-in-NET
3.http://www.c-sharpcorner.com/UploadFile/krishnasarala/barcode-scanner-in-C-Sharp/
4.https://msdn.microsoft.com/en-us/library/aa446489.aspx
5.http://www.barcodelib.com/net_barcode_reader/main.html
6.http://stackoverflow.com/questions/32391146/read-barcode-via-camera-in-an-asp-net-mvc-5-application.
7.http://www.dynamsoft.com/blog/document-imaging/scan-and-upload-documents-in-asp-net-mvc-application-using-dynamic-web-twain/
8.http://stackoverflow.com/questions/10803292/how-to-send-data-in-jquery-post-to-mvc-controller-which-use-viewmodel-as-paramet
Posted
Updated 13-Jul-16 0:07am
v2
Comments
Herman<T>.Instance 13-Jul-16 2:53am    
which scanner are you using? Does the scanner have a library you need to import/use?
Member 12632270 13-Jul-16 3:09am    
I am using TVS USB Scanner (Model No. BS-C11 Star)
Do i need to import library for that?
Herman<T>.Instance 13-Jul-16 3:35am    
Was a cd/dvd added in the box? It might have dll files on it that should be used. Most of these DLL have events for scanning incorporated. So when you bleep the even t sends the data to your program when you have initiated that event.
Member 12632270 13-Jul-16 3:40am    
No i did'nt recive any dvd/cd
Herman<T>.Instance 13-Jul-16 5:21am    
A download on internet?

Quote:
How can I perform barcode scan
It depend on your settings, hardware, frovers. Either it is like a keyboard entry, either you get it via serial port. In any cases you end up with a string.
Quote:
and retrive/ fetch data based on barcode scan from database
With the string you have got, you do exactly as you usually do, nothing special here.
 
Share this answer
 
Your .net code runs on the server and has no access to client hardware. This will only work if the scanner you use comes with software\plug-ins that allows it to be used from a browser. Contact that scanner manufacturer to see if this is supported.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900