|
-
Mar 8th, 2000, 10:48 AM
#1
Thread Starter
Lively Member
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?
-
Mar 9th, 2000, 03:44 AM
#2
Junior Member
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
-
Mar 9th, 2000, 09:45 AM
#3
Thread Starter
Lively Member
Call back
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|