My goal is to be able to add any custom made ActiveX control
to an ASP. I have used VB6 to make the control and Visual
InterDev to design the web page. The resulting code is:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function button1_onclick() {
UserControlX1.MyText = "XXXXXXX"
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<P>
<OBJECT id=MyUserControl1 style="WIDTH: 78px; HEIGHT: 49px"
classid=clsid:16D06D6E-63BA-11D8-BF80-00D0B7AA5636 VIEWASTEXT>
<PARAM NAME="_ExtentX" VALUE="2064">
<PARAM NAME="_ExtentY" VALUE="1296"></OBJECT>
&n bsp;
<INPUT id=button1 style="WIDTH: 56px; HEIGHT: 24px"
type=button size=19 value=Button name=button1
LANGUAGE=javascript onclick="return button1_onclick()"></P>
</BODY>
</HTML>
Note that I have not included any server script here, only client
script. This is just an attempt to be able to make the ActiveX
control work. It does work when run on a
VB form but why not here?
Is there any registry problems? Any suggestions?
Ernst.