用html页面调用activex可以正常显示,改成aspx页面后左上角显示叉
仁额 2014-12-24 04:29:19 使用html调用的代码
<html>
<title></title>
<head></head>
<body background="dotline2.gif" topmargin="0" leftmargin="0">
<OBJECT ID="activex1" CLASSID="CLSID:3CF4EB62-5318-4a27-8FB8-89FA7D2B76D5" CODEBASE="setup.exe" width="100%" height="100%">
</OBJECT>
</body>
</html>
可以正常显示
但是换成用aspx页面调用就出现叉了,代码如下
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="printWeb.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body background="dotline2.gif" topmargin="0" leftmargin="0">
<OBJECT ID="activex1" CLASSID="CLSID:3CF4EB62-5318-4a27-8FB8-89FA7D2B76D5" CODEBASE="setup.exe" width="100%" height="100%"></OBJECT></body>
</body>
</html>
activex控件应该没什么问题,因为html可以成功调用,,不知道为什么aspx不可以,,请各位大神指教。