Pass parameter from page to ActiveX

丶灬走出姿态 提交于 2019-12-01 11:12:21

问题


    <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.

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


回答1:


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

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

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…



来源:https://stackoverflow.com/questions/2816294/pass-parameter-from-page-to-activex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!