Hi,
I have made a simple ActiveX Control (.ocx) and now I want to put it on my web page, but I don't know how to put it on the web page.
Can anyone tell me ??
Thankx
Printable View
Hi,
I have made a simple ActiveX Control (.ocx) and now I want to put it on my web page, but I don't know how to put it on the web page.
Can anyone tell me ??
Thankx
in interdev, right click on your project and choose 'add > item', then select your ocx. on an asp page you can either create an instance of your control by using
set myObject = Server.CreateObject("MyProject.ObjectName")
or using soemthing like
<OBJECT runat="server" ...>
(please check for the complete <OBJECT> tag syntax on msdn, i dont know it from the top of my head).
Easyest way is to use the Package and Deployment Wizard on the ActiveX project. It will make you a cab file that can be opened by the user's browser and it will also make you a default html file.
So, just open that html file, and copy and paste the contents of the body into your own html file, don't forget to have a propper reference to the cab file...