Is the ActiveX object you are calling actually a control? If it is, you
need to use the client-side object scripting model to call it's
functions and methods from within the browser. I don't have much
experience with that, because I try to stay away from client-side
scripting (its yucky to write and debug).
If it is just an ActiveX COM object, then to use it on the server side,
you create a Project Reference to that component in your web project,
and then you can instantiate it in your server-side code like this:
Dim myObject as New CustomActiveXComponent
myObject.DoSomething()
If it is referenced correctly, it should show up in Intellisense when
you declare the object, and when you hit the period, you should see the
methods and properties of the class.
Mike
qualitynice@hotmail.com wrote:[color=blue]
> HELP :-)... I'm creating an embedded activex object in an asp.net page
> using the HtmlGenericControl class. I'm doing this because when I
> tried to embed it directly in the aspx page, it stopped working once I
> changed it to run on the server (runat="server"). It said the GUID was
> wrong. I found code showing how to implement an activex control using
> the HtmlGenericControl class from the code behind file, but I can't
> figure out how to call functions or methods on it. Any help would be
> greatly appreciated.[/color]