首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

web页面中调用ocx控件有关问题!

2012-02-08 
web页面中调用ocx控件问题!!HTML code!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

web页面中调用ocx控件问题!!

HTML code
<!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>无标题文档</title> <script type="text/javascript"> function show(){ var obj=document.getElementById("pathOcx"); alert(obj);var str=obj.getFiles(); alert(str);} </script> </head> <body> <OBJECT id="pathOcx" classid="clsid:13BF0862-063C-432F-A8DF-07C2823E8562" width=420 height=300 align=center hspace=0 vspace=0 > </OBJECT> <br> <input type="button" name="Submit" value="显示数据" onClick="show()"> </body> </html>



代码如上。
问题如下:
1 第一个alert 会弹出一个object对象,但是第二个就报错,说是对象不支持此属性或方法
2 我的ocx文件也注册成功
3 这个object的属性classid 到底应该是什么?是我注册表中的那串字符串吗?


请高手解决!

[解决办法]
http://blog.csdn.net/woshisadshiwo/article/details/6932802

热点排行