使用.net通过Internet Explorer查询用户n/w [英] Query the user n/w via Internet Explorer using .net

查看:157
本文介绍了使用.net通过Internet Explorer查询用户n/w的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

请为我提供宝贵的指导.

Hi all,

Please help me with your valuable guidence.


  1. 我已经完成了一个Web应用程序,该应用程序托管在我们的Web服务器上,并且所有人都可以通过Internet访问.
  2. 一旦用户打开网站,系统将提示用户输入IP范围
  3. 在网页上识别打印机之后,将显示合适的更新驱动程序列表,他可以下载和下载该驱动程序.根据需要安装它们.


现在执行第2点.我想有一个ActiveX组件,当他访问该网站时,它将安装在用户PC上.请建议我如何继续使用ActiveX组件&通过IE安装吗?

否则,如果您认为除了ActiveX组件之外,还有更好的选择可以从最终用户那里获取所需的信息,那么请告诉我.

总而言之,我需要您的以下问题的帮助..

1.如何在客户端计算机上通过IE安装ActiveX组件(C#.net dll在此处显示为COM)?
2.是否有其他过程/其他AcitveX组件可以通过IE在用户计算机中查询?


请分享您的想法和看法.指导我.

谢谢,
Balu


Now to perform point 2. I thought to have an ActiveX component which will be installed on the user PC when he visits the web site. Please suggest me how to proceed with ActiveX component & install it via IE?

Or else if you feel that there is better option other than ActiveX component to get the required information from end user, then please let me know.

To summarise I need ur help for below questions..

1.How to install ActiveX component(here C#.net dll is exposed as COM) via IE on client machines?
2.Any other procedure/way other AcitveX component to query in user machine via IE?


Please share you thoughts & guide me.

Thanks,
Balu

推荐答案

虽然您可以非常有效地使用ActiveX来做到这一点,但我还是请您重新考虑用C#编写它.使用C#中的ActiveX,您可能需要最终用户下载.NET框架以在其计算机上运行,​​以便运行控件.

潜在地,另一种方法可能是使用HTA(HTML应用程序)和访问WMI服务的JavaScript查询.您可以在WMI 此处找到详细信息 [
While you can use ActiveX quite effectively to do this, I''d ask you to reconsider writing it in C#. With ActiveX in C#, you maybe requiring the end user to download the .NET framework to run on their machine in order to run your control.

Potentially, another approach may be to use an HTA (HTML Application) and a JavaScript query hitting the WMI services. You can find details on WMI here[^].


这篇关于使用.net通过Internet Explorer查询用户n/w的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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