0

Hello

I have created an ActiveX control in VB6.0 and trying to embed this ActiveX control in Asp.Net 2.0 through the following command. But I can’t see anything in my aspx page whereas it works fine with html page.

<object id="ctlVBAX"
classid="clsid:B7C88829-7BCF-4AB6-95A5-F63ADBEA151A"
codebase="vbActiveX.CAB#version=1,0,0,0">
</object>

You can download the cab file from following url - http://www.agoenka.info/vbActiveX.CAB

What is the problem?

Thanks
Abhishek

2
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by Ramesh S
0

Try something like this

<object id="ctlVBAX" classid="clsid:B7C88829-7BCF-4AB6-95A5-F63ADBEA151A" codebase="file:///C:/Work/vbActiveX.CAB">
                    </object>

Put the name of the folder where you place the activex control in codebase directory.

0

Hello

I tried the following solution but still it is not working
<object id="ctlVBAX"
classid="clsid:B7C88829-7BCF-4AB6-95A5-F63ADBEA151A"
codebase="vbActiveX.CAB" width="5" height="6">
</object>

Note: "vbActiveX.CAB" is in the same folder.

Thanks
Abhishek

0

As I said in my previous post, give the full physical or absolute path in codebase property and check it.

Physical Path: Enter the path like file:///D:/yourfoldername/vbActiveX.cab

Abosolute Path: You may enter the url like http://www.agoenka.info/vbActiveX.CAB

Also based on the security settings, you may need to give code access permission to the activex control using Code Access Security Policy Tool (Caspol.exe).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.