CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2000
    Posts
    2

    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






  2. #2
    Join Date
    Jan 2000
    Location
    MO, USA
    Posts
    1,506

    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
    John Pirkey
    MCSD (VB6)
    http://www.stlvbug.org

  3. #3
    Join Date
    Aug 2000
    Posts
    2

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured