有这样一个测试页面
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChartShow.aspx.cs" Inherits="ChartShow" %><!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">
<title>ActiveX控件开发</title>
<link type="text/css" href="Config/ObjStyle.css" rel="stylesheet" />
</head>
<script language="javascript">
function LoadControl()
{
//获取连接字符串
var conn= "<%=GetConnection() %>"
//读取对象
var x = new ActiveXObject("WebChartControl.WinWebChart"); //<!-- 设置属性 -->
x. _Ymid="0";
x. _Xtid="0";
x. _strCon=conn;
}
</script>
<body onload="LoadControl()">
<form id="form1" runat="server">
<div>
<object id="WebChart" classid="clsid:5B7E1537-103F-4484-8326-2AA643E4537F" codebase="http://localhost/ActTest/web/WebchartCab.CAB" ></object>
</div>
</form>
</body>
</html>自己写了一个ActiveX控件 里面有几个属性值 _Ymid 、 _Xtid 、_strCon
如何把值赋给控件的这几个参数
请各位高手帮帮忙~
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChartShow.aspx.cs" Inherits="ChartShow" %><!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">
<title>ActiveX控件开发</title>
<link type="text/css" href="Config/ObjStyle.css" rel="stylesheet" />
</head>
<script language="javascript">
function LoadControl()
{
//获取连接字符串
var conn= "<%=GetConnection() %>"
//读取对象
var x = new ActiveXObject("WebChartControl.WinWebChart"); //<!-- 设置属性 -->
x. _Ymid="0";
x. _Xtid="0";
x. _strCon=conn;
}
</script>
<body onload="LoadControl()">
<form id="form1" runat="server">
<div>
<object id="WebChart" classid="clsid:5B7E1537-103F-4484-8326-2AA643E4537F" codebase="http://localhost/ActTest/web/WebchartCab.CAB" ></object>
</div>
</form>
</body>
</html>自己写了一个ActiveX控件 里面有几个属性值 _Ymid 、 _Xtid 、_strCon
如何把值赋给控件的这几个参数
请各位高手帮帮忙~
public interface IWebChart
{
string _Ymid {get; set;}
}
网页中可以用 document.all.WebChart._Ymid =" test ";