-
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
-
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,
:o Mac :)
-
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??
-
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.