Sign in to follow this  

[web] Adding a usercontrol to a website

This topic is 4545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Ok, 've been doing some thinking... If i have a user control (created in Vb6), how would i host it onto a website? In the source, it just has
<HTML><BODY><OBJECT classid="clsid:BAB8DF37-5FF3-4A7E-9397-E479623AF6FC">
</OBJECT></BODY></HTML>

Hmmm. My only other options are using an ActiveX dll, An ActiveX exe or a normal exe. What would be the best way to upload one of these onto a website/How would i do it? From, Nice coder

Share this post


Link to post
Share on other sites
Nobody is going to want to download your ActiveX control. Most web browsers (that support ActiveX at all!) will be configured not to download unsigned code. Some will be configured not even to download signed code - in fact, downloading no code at all.

Plus also, there is the issue of the fact that, because it's written in VB, it will require the VB runtime libraries (of the appropriate version) on the client machine.

By all means read the documentation on how to specify ActiveX controls to be downloaded - but I think it's highly unlikely that anybody will download it (unless it's corporate policy or something).

Mark

Share this post


Link to post
Share on other sites
No, the program is not encoded in the class ID.

All the Class ID is, is a unique ID pointing into the Windows registry. The class has to be registered (with regsvr32 or something). This puts information into the registry telling OLE where to find the class's executable (exe or DLL usually).

It won't work unless the files are already physically present on the machine and registered, unless you also provide a codebase property (or something) to tell it where to find the files on the web - this is a URL. But it won't install automatically - it will ask the user, or do nothing depending on security settings.

Mark

Share this post


Link to post
Share on other sites

This topic is 4545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this