|
-
Feb 2nd, 2001, 07:46 AM
#1
Thread Starter
Lively Member
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.
-
Feb 2nd, 2001, 09:09 AM
#2
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
-
Feb 2nd, 2001, 09:36 AM
#3
Thread Starter
Lively Member
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??
-
Feb 2nd, 2001, 05:34 PM
#4
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|