|
-
Mar 10th, 2001, 07:28 PM
#1
Thread Starter
PowerPoster
i see this file included in a lot of ASP scripts in books and stuff but don't know what it does:
Code:
<!-- #include virtual="/adovbs.inc" -->
If i remove or comment out that line, the code still seems to work.
I know it has to do with databases.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Mar 10th, 2001, 07:30 PM
#2
Monday Morning Lunatic
That's not ASP code. It's actually a server side include 
What that does is it basically includes the whole content of that file right there, before it's even got to the ASP engine.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 11th, 2001, 12:38 AM
#3
Thread Starter
PowerPoster
yes, i know that it is not ASP code and i do know what a server side include is. What i was wondering is what exactly the file adovbs.inc has in it, and what it is used for.
I know it has to be more than just an include file made by some person, because it is included in some of my webserver files, and a lot of the scripts i download use it.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
-
Mar 11th, 2001, 03:43 AM
#4
Addicted Member
It holds th constants for ADO for VBscript use.
If u use Jscript u need adojavas.inc
and you can find both at...
C:\Program Files\Common Files\SYSTEM\ADO folder
It has the Constants mapped to actual Values.
For Example
'---- CursorTypeEnum Values ----
Const adOpenForwardOnly = 0
Const adOpenKeyset = 1
Const adOpenDynamic = 2
Const adOpenStatic = 3
If you include it u can use it like
RS.Open Query,Connect, adOpenStatic,adLockOptimistic
If You use these constants while using ADO without
including the include file...It will give you error.
The other Way to avoid this include file is to
use the numbers like
RS.Open Query,Connect, 3,3
But that would be very unfriendly...so
You can copy the constants to the Required ASP page.
and use those constants.
Including those file won't hurt though if you are not memory conscious.
-
Mar 11th, 2001, 07:18 AM
#5
Monday Morning Lunatic
Originally posted by sail3005
yes, i know that it is not ASP code and i do know what a server side include is. What i was wondering is what exactly the file adovbs.inc has in it, and what it is used for.
I know it has to be more than just an include file made by some person, because it is included in some of my webserver files, and a lot of the scripts i download use it.
Oops...sorry I got confused as to what you meant .
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 11th, 2001, 11:35 AM
#6
Thread Starter
PowerPoster
Originally posted by parksie
Oops...sorry I got confused as to what you meant .
oh, thats fine, thanks for helping.
And thanks Active for that help, that explained a lot.
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
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
|