Click to See Complete Forum and Search --> : ActiveX control with ASP
thinh
Mar 8th, 2000, 09:48 AM
Is there anyway i can use ActiveX control in an ASP page using it with the server.createobject() function?
if there is how to call back the ActiveX control or component?
Raggart
Mar 9th, 2000, 02:44 AM
You can use the CLSID to create an <OBJECT> with the CLSID of the ActiveX control you want. For example:
<OBJECT classid="clsid:99B42120-6EC7-11CF-A6C7-00AA00A47DD2" id=lblActiveLbl
width=250
height=250
align=left
hspace=20
vspace=0>
<PARAM NAME="Angle" VALUE="90">
<PARAM NAME="Alignment" VALUE="4">
<PARAM NAME="BackStyle" VALUE="0">
<PARAM NAME="Caption" VALUE="A Simple Desultory Label">
<PARAM NAME="FontName" VALUE="Verdana, Arial, Helvetica">
<PARAM NAME="FontSize" VALUE="20">
<PARAM NAME="FontBold" VALUE="1">
<PARAM NAME="FrColor" VALUE="0">
</OBJECT>
in the HTML section of your ASP will create a Label control which you can then manipulate (in the code part) as if it were in a VB Form (i.e. lblActiveLbl.caption = "Hello World").
As for the call back, can you be more precise? What type of call back do you want exactly?
Raggart
thinh
Mar 9th, 2000, 08:45 AM
Like the ASP function server.createobject("winsockcontrol") for example. is there a way to do it like that? the server.createobject only works with *.dll files...
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.