从页面传递参数的ActiveX [英] Pass parameter from page to ActiveX

查看:133
本文介绍了从页面传递参数的ActiveX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

    <object id="Bacs_DBTableRepX"
     classid="CLSID:CA8B72B3-3B15-40D7-9364-478E25AF5B41"
     codebase="Bacs_DBTableRepX.cab"
        style="
        Z-INDEX: 102; LEFT: 20px; WIDTH: 1200px; 
        POSITION: absolute; TOP: 80px; HEIGHT: 600px">
        <param name="ax_Command" value='<%=GetText()%>'/>
    </object>

下面是我的尝试,但没有任何意义。参数还没有被发送。

Here is my try but it made no sense. Parameter had not being sent.

有什么例子来说明如何发送参数到我的ActiveX或在我的code一些错误?

Is there any examples how to sent parameter to my ActiveX or some mistakes in my code ?

推荐答案

您的HTML code貌似正确的,这里是一个示例:

Your html code looks like correct, here is a sample:

http://www.w3schools.com/TAGS/tag_object.asp

我会尝试一个断点设置为属性的的getter 并检查是否被调用。吸气剂被控制在初始化过程中制定者面前总是叫。如果它不叫,可能是你忘了你的道具添加到属性映射或类似的东西...

I would try to set a breakpoint to the property getter and check whether it is called. Getters are always called before setters during control initialization. If it is not called, probably you forgot to add your prop to property map or something like that…

这篇关于从页面传递参数的ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆