-2

我试图弄清楚如何在网页中使用 .NET dll。这可以用 ActiveX 控件完成吗?还是其他方式?以下不起作用。

<html>
<body>

<script type="text/javascript">alert("Top");</script>

This is a web page.


<object id="SimpleVBObject" classid="C:\IntuitiveDev\Bin\Test.dll#Test.Simple"></object>

<script type="text/vbscript">

MsgBox ("simple before")
SimpleVBObject.Message()
MsgBox ("simple after")

</script>

</body>
</html>

仅调用第一个消息框函数。

4

1 回答 1

0

请参阅此http://msdn.microsoft.com/en-us/library/a7as3z1d(v=vs.90).aspx

<object id="myCtl" 
   classid="http://www.mycode.Microsoft.com/mycode.dll#myClass"> 
</object>
于 2013-10-21T19:07:45.127 回答