简体   繁体   English

.net activeX等效

[英].net activeX equivalent

Is there a pure .NET replacement for ActiveX? 是否有ActiveX的纯.NET替代品? I'm asking if there is a way for me to write a thick client side control to be loaded and interacted with in a web page in .NET, with NO com. 我在问是否有一种方法可以编写厚客户端控件,以便在没有com的情况下在.NET的网页中进行加载和交互。

Edit: I don't want ActiveX in pure .NET, I want a .NET alternative to ActiveX. 编辑:我不想要纯.NET中的ActiveX,我想要.NET替代ActiveX。

I'm afraid there is no perfect managed only equivalent of ActiveX. 恐怕还没有完全托管的ActiveX。 Mostly for good reason. 主要是有充分的理由。 ActiveX is a dangerous technology security wise and duplicating it's effects in many ways would require duplicating the lack of security. ActiveX是一项危险的技术安全明智之举,并且以多种方式复制其影响将需要复制缺乏安全性。

Have you tried SilverLight? 您是否尝试过SilverLight?

It's not a perfect ActiveX replacement because it doesn't grant you unferreted access to the machine. 这不是完美的ActiveX替代品,因为它不会授予您对计算机的无私访问权限。 But it does provide the ability to write rich client side controls in .Net. 但是它确实提供了在.Net中编写丰富的客户端控件的能力。

You can use UserControl it can be embedded inside IE, I don't know what you mean by interaction with the web browser, but it can call out scripts on the page and post events that can be handled by scripts on the page. 您可以使用UserControl并将其嵌入IE中,我不知道与Web浏览器进行交互的意思,但是它可以在页面上调出脚本并发布可以由页面上的脚本处理的事件。
Notice that .NET must be preinstalled in order for the control to work. 请注意,必须预先安装.NET,控件才能正常工作。
You can also go with Silverlight as JaredPar mention, but then your api is more limited. 正如JaredPar所提到的,您也可以使用Silverlight,但是您的api受到更多限制。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM