简体   繁体   English

我如何使用asp.net C#在Web应用程序中显示捕获的指纹

[英]How can i show captured fingerprint in web application using asp.net C#

i am trying to integrate Fingerprint scanner with my asp.net Web Application..but iam unable to use the picture box.. 我正在尝试将指纹扫描仪与我的asp.net Web应用程序集成。但是我无法使用图片框。

private void btnInitialize_Click(object sender, EventArgs e)
        {
            try
            {
                bmp = null;
                pictCaptureImg.Image= bmp;

                if (!csd200Obj.isDeviceConnected())
                {
                    MessageBox.Show("Please Connect Device...");
                    return;
                }

                if (!csd200Obj.isDeviceInitialized())
                {
                    int nRc = csd200Obj.initializeScanner();
                    if (nRc != CSD200APICodes.SUCCESS)
                    {
                        MessageBox.Show("3M Cogent CSD200 scanner initialization failed. Error Code: " + nRc, "3M Cogent CSD200");
                        return;
                    }
                }
                MessageBox.Show("Initialization Successful", "3M Cogent CSD200");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }

Iam getting error at this line pictCaptureImg.Image= bmp; 我在此行上出现错误pictCaptureImg.Image = bmp; because mine is a web application.Can u please let me know how can i use picture box in asp.net web application and how can i show my captured fingerprints there? 因为我的是一个Web应用程序。您能告诉我如何在asp.net Web应用程序中使用图片框,如何在其中显示捕获的指纹吗?

You need to use client-side code to access fingerprint device. 您需要使用客户端代码来访问指纹设备。 Also you must check what software interface libraries your device provides with it. 另外,您必须检查设备随附的软件接口库。 For example, if it comes with an ActiveX, you should install the ActiveX and use it in your web client code javascript. 例如,如果它带有ActiveX,则应安装ActiveX并在Web客户端代码javascript中使用它。 If it provides plugins for specific browsers, you should use that plugins. 如果它提供了特定浏览器的插件,则应使用该插件。 Another option (but with security risks) is to use java applet. 另一种选择(但存在安全风险)是使用Java applet。 Please note that accessing hardware from inside web client is restricted by browsers because of security issues. 请注意,由于安全问题,浏览器限制从Web客户端内部访问硬件。 Using different technologies has their restrictions and benefits: 使用不同的技术有其局限性和优势:

  • ActiveX: You are restricted to Internet Explorer only. ActiveX:您只能使用Internet Explorer。 If your device does not come with an ActiveX library, you can create one in C#. 如果您的设备没有ActiveX库,则可以使用C#创建一个。 Creating ActiveX in c# is not a complicated job! 用c#创建ActiveX并不复杂!
  • Plugins: If your device does not come with plugin libraries for different browsers, you may write plugins for browsers you want to support. 插件:如果您的设备未随附用于不同浏览器的插件库,则可以为要支持的浏览器编写插件。 Writing plugin for each browser may be different and specific to each browser. 为每个浏览器编写插件可能会有所不同,并且特定于每个浏览器。
  • Java Applet: You can create a java applet if you can write java code. Java Applet:如果可以编写Java代码,则可以创建Java Applet。 It is also not a complicated job, because more of the stuff can be done in native libraries. 这也不是一件复杂的工作,因为可以在本机库中完成更多的工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用DataGrid或DataList视图在ASP.net C#中垂直显示列表? - How Can i Show a list Vertically in ASP.net C# Using DataGrid Or DataList View? 如何在ASP.Net Web表单中使用Roslyn执行C#代码? - How I can execute C# code using Roslyn in ASP.Net web form? 我如何在c#asp.net应用程序中使用jquery实现文本框自动建议? - How can i implement textbox auto suggest using jquery in my c# asp.net application? 如何对从C#控制台应用程序使用表单身份验证的ASP.NET WebAPI进行身份验证? - How can I authenticate to an ASP.NET WebAPI that is using Forms Authentication From a C# Console Application? C#ASP.NET无法重新加载Web应用程序 - C# ASP.NET can not reload web application 如何在同一个ASP.NET Web窗体应用程序中使用c#和vb.net代码? - How can I have c# and vb.net code behinds in the same ASP.NET Web Forms application? 如何在Asp.net MVC Web应用程序c#中上传文件时显示进度? - How to show the progress while uploading a file in Asp.net MVC web application, c#? 将XPath与ASP.NET C#Web应用程序一起使用 - Using XPath with ASP.NET C# Web Application 使用C#和asp.net的Web应用程序中的进度栏 - Progress bar in web application using C# and asp.net 如何使用C#.net为Windows应用程序和使用C#ASP.NET的Web应用程序生成Excel文件 - how to generate excel file for a windows application using C# .net and a web application using C# ASP.NET
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM