How to enter some data from ASP to ActiveX component ?
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
Re: How to enter some data from ASP to ActiveX component ?
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
Re: How to enter some data from ASP to ActiveX component ?
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