Activex控件调用出错,对象不支持此属性或方法
在vs2008中的网页中调用如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<object id="Test" classid="CLSID:00FA5633-7886-4C7C-80FB-154D4C4A7B96"></object>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
Test.BoxTest();
</script>
提示Microsoft JScript 运行时错误: 对象不支持此属性或方法,但是我在文本中这样调用是对的啊,这是怎么回事。求高人解释