2、web 页面调用Active组件
注意web页面调用时需要把Active的.dll放到web的虚拟要目录下。
<HTML>
<HEAD>
<title>TestActive</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="javascript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body >
<font face="arial" size="1">
<OBJECT id="MyControl1" name="MyControl1" classid="http://localhost/WebApplication1/ActiveXDotNet.dll#ActiveXDotNet.AbeenControl"
width="288" height="72" VIEWASTEXT>
</OBJECT>
</font>
<form id="frm" name="frm">
<input type="text" name="txt" value="请输入数据:" ID="Text1">
<input type="button" value="确定" onclick="doScript();" ID="Button1" NAME="Button1">
<script type="text/javascript">
function doScript()
{
MyControl1.LabelText=frm.txt.value;
}
</script>
</form>
</body>
</HTML>
Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=1621466