Ask a Question related to ASP Components, Design and Development.
-
tammy #1
Vb ocx with asp file in client side
Hi all..
I have made ocx with vb6, and I embedded with asp file.
When I am running this asp in server side windows 2000, the ocx is
working fine, but when I call from client side with windows 2000 too,
it's only small blank box.
I have tried using this line :
<HTML><body topmargin="0" leftmargin="0" bgcolor="#F8F4DD">
<OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
codebase="http://server/path/data.ocx"></OBJECT></BODY></HTML>
but it's still doesn't work..
I also have added runat ="server" it's still same.
Hopefully anyone can give me a solution for this.
tammy Guest
-
flashcom: client side cant access server side
hi all, i hav install the flash com on the PC. It work well, on the server PC, i can access and log in to the 'chat room'.. however, if im... -
Controls with a client side onLoad function or seting a cursor server side
Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or... -
Client side and server side scripting problem
Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve... -
server-side ASP w/ client -side component
Hello good folks! I need your advice on a project that i am working on. I am integrating a signature pad, a client-side web browser, and my... -
button evet ---- server side - client side ???
I want to use button. My question is that How can use server side and client site event at the same time. That is: I want to use button : when... -
Rob MacFadyen #2
Re: Vb ocx with asp file in client side
Tammy,
You need to package the .OCX in a .CAB file. You will also need to create a
..INF to provide the client pc with instructions on how to install the files.
Here's a sample .INF
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
MyOCX.ocx=MyOCX.ocx
MSVBVM60.DLL=MSVBVM60.DLL
[MyOcx.ocx]
file-win32-x86=thiscab
clsid={A171AA73-2F00-4523-A7C6-17C4CF821245}
FileVersion=1,3,0,17
RegisterServer=yes
[MSVBVM60.DLL]
hook=MSVBVM60.cab_Installer
FileVersion=5,1,43,19
[MSVBVM60.cab_Installer]
file-win32-x86=http://activex.microsoft.com/controls/vb6/MSVBVM60.cab
InfFile=MSVBVM60.inf
You will have to adjust the MyOcx stuff to fit your control (eg. the clsid
and file version).
To build a cabfile you need the cabarc command (see link below). The command
should be something like:
cabarc.exe n MyOcx.cab MyOcx.ocx MyOcx.inf
That creates your .CAB file with your .OCX and .INF. The required support
files are downloaded from Microsoft. You then reference the .CAB from you
web page using the codebase attribute:
<OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
codebase=http://server/path/MyOcx.cab#version=1,3,0,17></OBJECT>
A couple of things you need to concern yourself about managing updates to
your control. As you make changes to the control you need to update it's
version number and the .INF and the .CAB file itself. IE likes to cache cab
files so you have to be careful about your version numbers (that why there
is a version number in the codebase attribute now
The following on MSDN might help:
[url]http://msdn.microsoft.com/library/default.asp?url=/workshop/components/activ[/url]
ex/packaging.asp
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/htm[/url]
l/vbconinternetcomponentdownload.asp
Hope this helps,
Rob
--
RMTrack a new bug tracking tool. Available now from [url]www.rmtrack.com[/url] (watch
for our new 1.2 release!)
"tammy" <ty_yenny@yahoo.com> wrote in message
news:6ba130c6.0308250236.2d2f5587@posting.google.c om...> Hi all..
>
>
> I have made ocx with vb6, and I embedded with asp file.
> When I am running this asp in server side windows 2000, the ocx is
> working fine, but when I call from client side with windows 2000 too,
> it's only small blank box.
> I have tried using this line :
> <HTML><body topmargin="0" leftmargin="0" bgcolor="#F8F4DD">
> <OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
> codebase="http://server/path/data.ocx"></OBJECT></BODY></HTML>
>
>
> but it's still doesn't work..
> I also have added runat ="server" it's still same.
>
> Hopefully anyone can give me a solution for this.
Rob MacFadyen Guest



Reply With Quote

