如何在aspx页面上使用activex? [英] How to Use activex on aspx page ?

查看:132
本文介绍了如何在aspx页面上使用activex?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好专家

我有SecuGen®Hamster™IV的SDK和指纹扫描仪.它们还提供了ActiveX控件.
如何在aspx页面中使用该控件?

我想知道如何在Web应用程序中使用第三方com组件?.


例如.
我有网络应用程序.在该应用程序中,它要求用户指纹进行身份验证.
使用指纹,我可以登录该网站.
为此,我必须在客户端计算机上连接指纹设备,然后用户在IE中写入url,然后打开该网站,然后将手指放在设备上,然后扫描该手指并在该手指与该网站数据库匹配时登录该用户. .

Hello experts

I have SDK and Scanner of finger print of SecuGen® Hamster™ IV. They also give activex control.
How can I use that control in aspx page?

I want to know how to use third party com component in web application?.


For example .
I have web application. In that application it asks for user finger print for Authentication.
Using finger print I can login that web site.
For that I have to attach finger print device on client machine and User write the url in the IE and Open that web site and put the finger on the device and it scan that finger and login that user if the finger match to that website data base.

推荐答案

步骤1:创建Windows控件库
第2步:编译代码
步骤3创建ASP.NET Web应用程序
步骤4:在ASP.NET应用程序中复制Windows控件库DLL(对于VB.NET,则为bin dir)
步骤5:在HTML/ASP.NET页面中,添加< object>标签
< object id ="UserControl1"
classid ="http://localhost/WebApplication1/WindowsControlLibrary2.dll#WindowsControlLibrary2.UserControl1" height ="300" width ="300" viewastext =">
尝试运行html/aspx页面


附注:基于ActiveX状态,您需要在浏览器中启用适当的设置.如允许签名的ActiveX"等.

寻求帮助的链接:
如何以Web形式托管ActiveX控件 [
Step 1 :Create a Windows Control Library
Step 2: Compile the code
Step 3 Create ASP.NET Web Application
Step 4 : Copy the Windows Control Library DLL in ASP.NET Application(bin dir in case of VB.NET)
Step 5 : In HTML /ASP.NET Page Add <object> tag
<object id="UserControl1"
classid="http://localhost/WebApplication1/WindowsControlLibrary2.dll#WindowsControlLibrary2.UserControl1" height="300" width="300" viewastext="">
Try running html/aspx page


P.S.: Based on ActiveX state, you would need to enable proper settings in your browser. Like ''Allow signed ActiveX'', etc.

Links for help:
How to host ActiveX controls in a Web form[^]


这篇关于如何在aspx页面上使用activex?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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