如何在MVC 4 ASP.NET中基于条形码扫描执行条形码扫描和检索/获取数据? [英] How can I perform barcode scan and retrive/ fetch data based on barcode scan from database in MVC 4 ASP.NET ?

查看:166
本文介绍了如何在MVC 4 ASP.NET中基于条形码扫描执行条形码扫描和检索/获取数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在产品的条形码扫描的基础上执行条形码扫描和从数据库中检索数据。我在插入产品时如何在扫描产品时输入条码有问题,如何根据条形码检索细节在mvc4 asp.net上销售时扫描。



我尝试过:



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.h​​ttps://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-a sp-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

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

推荐答案

引用:

如何执行条形码扫描

这取决于您的设置,硬件,毛边。要么它像键盘输入,要么通过串口获得。在任何情况下,你最终都会得到一个字符串。

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.

引用:

并根据条形码扫描来检索/获取数据数据库

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.


你的.net代码在服务器上运行,无法访问客户端硬件。这仅适用于您使用的扫描仪带有允许从浏览器使用的软件插件.hp的插件。请联系该扫描仪制造商,了解是否支持此功能。
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.


这篇关于如何在MVC 4 ASP.NET中基于条形码扫描执行条形码扫描和检索/获取数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆