Results 1 to 3 of 3

Thread: ActiveX control with ASP

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Post

    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?

  2. #2
    Junior Member
    Join Date
    Mar 2000
    Posts
    29

    Post

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Post 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
  •  



Click Here to Expand Forum to Full Width