Click to See Complete Forum and Search --> : How to enter some data from ASP to ActiveX component ?


abramowicz
August 14th, 2000, 09:25 AM
Hello
I am beginer in VB and ActiveX for ASP.

I wrote ActiveX DLL component for my ASP page.

This component is good working on this ASP page but only for his own data.
When I try to enter some data from ASP page / for example: dbname / - my
component is suspended without results.
Where is my error?


Declaration in component module:


public property let dbname(p_dbname as string)
r_dbname = p_dbname
End property




Declaration in ASP page:

Set obiekt = Server.CreateObject ( "MojActiveX.IsisComp" )

obiekt.dbname="d:/iis/pages/sklep/baza01/baza01"

obiekt.dbopen

What is wrong?
When I set this dbase name directly in in my component code and delete 'obiekt.dbname' line
from this ASP page, my ASP page is working correctly.

Can somebody help mi ?

Zbyszek

Johnny101
August 14th, 2000, 11:11 AM
i'm guessing there's another problem somewhere else. what's the code in the Open method? also, the ASP doesn't pass a filename to the dbname parameter - should it? (baza01.mdb perhaps?)

John

John Pirkey
MCSD
http://www.ShallowWaterSystems.com
http://www.stlvbug.org

abramowicz
August 15th, 2000, 08:22 AM
Hello John
Thank you for your answer and interesting my problem.
I still don't know what it was.
I wrote a new project with the same text and this one is correct!
May be it was any error of compiler?
Regards
Zbyszek