如何从ASP.NET网站访问智能卡? [英] How can i access to smartcard from ASP.NET site?

查看:145
本文介绍了如何从ASP.NET网站访问智能卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要与来自ASP.NET站点的智能卡进行通讯.我创建了一个与Windows上的读卡器一起使用的dll(使用Winscard.dll和MCSCM.dll,它是SCM Micro Reader的dll),但是我无法在ASP.NET中使用它.该项目将仅在IE上运行,我必须避免使用Javascript.

i need to comunicate with a smartcard from an ASP.NET site. I've create a dll(using Winscard.dll and MCSCM.dll that is the SCM Micro Reader's dll) that work with the cardreader on windows but i'm not able to use it with ASP.NET. The project will run only on IE and i must avoid Javascript.

谢谢您的帮助.

推荐答案

我找到了解决方案.我加载了一个创建activeXobject并使用客户端上安装的dll的Javascript.像这样:

I've find the solution. I load a Javascript that create an activeXobject and use my dll installed on the client. Something like this:

<script language="javascript">

   function Run() 
       {
           var x = new ActiveXObject("ASC.SC");
           txtRd.value = x.AutoRead();
       } 
</script>

谢谢您的帮助.

这篇关于如何从ASP.NET网站访问智能卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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