|
-
Feb 11th, 2003, 09:19 AM
#1
Thread Starter
Frenzied Member
OCX Problem[RESOLVED]
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
Last edited by usamaalam; Feb 15th, 2003 at 04:24 PM.
-
Feb 11th, 2003, 02:51 PM
#2
Fanatic Member
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).
-
Feb 15th, 2003, 12:33 PM
#3
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...
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
|