Results 1 to 4 of 4

Thread: ASP for Newbie

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Location
    Blackpool, England
    Posts
    87
    Hi All,
    Sorry for another newbie question but I need a hand.

    I'm new to ASP, I have been a VB programmer for 3 years.
    Could anyone explain to me how I go about debugging an ASP component.
    I am running VB6.0 SP4
    Also are there any standards for creating the components eg what are the best practises for performance, the best way to store
    data (collections, Dictionary, Arrays) etc. Does the VB component just need to reference the ASP object library. If I am using ADO do I simply use CreateObject or do I reference it in the project.

    Thanks for any help
    Last edited by SteveFlitIII; Feb 2nd, 2001 at 08:57 AM.

  2. #2
    Guest
    like ADO , in VB u need a reference ....

    but in ASP, u do not need to do so ..

    U just need to createobject like

    Set objRS = Server.CreateObject("ADODB.Connection")

    Another Eg: File System Object ..

    Set fso = Server.CreateObject("Scripting.FileSystemObject")

    regards,
    Mac

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Location
    Blackpool, England
    Posts
    87
    Thanks,
    So if I have got a VB component that the ASP page references does the component have to reference the ADO Object Library or should it use CreateObject??

  4. #4
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Assuming the component is an activeX dll, you have to make a reference to the ADO library just as you had been doing. In order to use ADO on an ASP page, you have to either add a reference to it in the global.asa file (IIS 5 only) OR add a server side include of the ADOVBS.INC file that contains all of the ADO constants. Either way you will still use Server.CreateObject to create ADO objects on the page itself.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

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