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

Recommended Answers

All 5 Replies

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.

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

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).

Ramesh

Thanks your solution is working fine.

Thanks
Abhishek

Hi AbhishekGoenka,

Mark this thread as solved if your question is answered.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.