如何调用IE浏览器中的Web页面上的.NET控件或者类库从JavaScript? [英] How do I call a .Net control or class library from javascript on a web page in Internet Explorer?

查看:97
本文介绍了如何调用IE浏览器中的Web页面上的.NET控件或者类库从JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的企业内部网应用程序,它需要从客户机环境变量的信息收集系统信息,因此它可以被服务器用于后续处理。浏览器是IE浏览器,版本8和9。

I am working on an intranet app where it needs to collect system information from environment variable information from the client machine so it can be used in later processing by the server. The browser is Internet Explorer, versions 8 and 9.

我看了一下Silverlight的作为一种可能性,但它似乎过于约束(出于安全原因)能够得到在我需要收集的信息。

I looked at Silverlight as a possibility but it appears to be too constrained (for security reasons) to be able to get at the information I need to collect.

到目前为止,寻找答案并没有得到任何东西。有什么想法?

So far, searching for an answer hasn't yielded anything yet. Any thoughts?

推荐答案

我不认为一个人可以从浏览器中读取环境变量。因为浏览器是专为互联网,为他们提供读取任何种类的系统的设置的能力会导致安全问题。没有人想要一个网站,他/她访问互联网向右读他的系统信息?我很怀疑这样做,你正在努力实现的东西的可能性。但是,你可能会考虑编写一个基于样本窗口的应用程序,这会从您的Intranet网站上下载,读取环境设置,并提交给服务器。

I don't think one can read environment variables from within browsers. Since browsers are designed for the Internet, providing them with an ability to read system's settings of any kind would lead to security issues. Nobody wants a website he/she visiting on the Internet reading his system information right ? I am very skeptical about the possibility of doing the thing you are trying to achieve. However, you might consider writing a sample windows based app, that gets downloaded from your intranet website, reads the environment settings and submits to the server.

这篇关于如何调用IE浏览器中的Web页面上的.NET控件或者类库从JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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