Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: HELP


Message #1 by "Fagan, Karen A (ARINC)" <FaganKA@n...> on Thu, 24 May 2001 09:03:49 -0400
Hi,



     Can someone please set me straight on the ADOVBS.inc file.  Everytime I

try to use pages that I have to use <!--#include file="adovbs.inc"--> I get

an error stating that the include file cannot be found.  Can someone please

explain to me what I am suppose to do with this file and be specific.  I

have found information on the problem but not exactly how to solve it.



     Am I suppose to add it to my global.asa file for each product or does

it go into my root directory on the server (which I did and it hasn't

helped).  This is driving me crazy, no matter what I do it doesn't work.



    Would appreciate any help that someone can give me.  This is holding up

work for me.







Thanks so much

Karen

Message #2 by "John Stallings" <jstallings@i...> on Thu, 24 May 2001 09:38:20 -0700
If you use



<!--#include file="adovbs.inc"-->



in a webpage the adovbs.inc file has to be placed in the same directory as

the calling page.  If it is in another directory it has to be referenced to

that specific directory.





-----Original Message-----

From: Fagan, Karen A (ARINC) [mailto:FaganKA@n...]

Sent: Thursday, May 24, 2001 6:04 AM

To: ASP Databases

Subject: [asp_databases] HELP





Hi,



     Can someone please set me straight on the ADOVBS.inc file.  Everytime I

try to use pages that I have to use <!--#include file="adovbs.inc"--> I get

an error stating that the include file cannot be found.  Can someone please

explain to me what I am suppose to do with this file and be specific.  I

have found information on the problem but not exactly how to solve it.



     Am I suppose to add it to my global.asa file for each product or does

it go into my root directory on the server (which I did and it hasn't

helped).  This is driving me crazy, no matter what I do it doesn't work.



    Would appreciate any help that someone can give me.  This is holding up

work for me.







Thanks so much

Karen

Message #3 by Michael Filip <mzcfilip@y...> on Thu, 24 May 2001 09:49:18 -0700 (PDT)
John almost go it...

when you specify "file" for your include location, it

needs the literal location of the include file on your

server.  This means that, yes, you need the include

file in each directory in which files use it IF your

include line in said files uses "file=".  However, I'm

sure you (and everyone else) will agree that copying

the file into each directory is stupid...



So, instead of "file=" then use "virtual=" !  Put

adovbs into your root web directory, and use this

line:



<!--#include virtual="/adovbs.inc"-->



S'all you need...

HtH

 - mike



--- John Stallings <jstallings@i...> wrote:

> If you use

> 

> <!--#include file="adovbs.inc"-->

> 

> in a webpage the adovbs.inc file has to be placed in

> the same directory as

> the calling page.  If it is in another directory it

> has to be referenced to

> that specific directory.

> 

> 

> -----Original Message-----

> From: Fagan, Karen A (ARINC)

> [mailto:FaganKA@n...]

> Sent: Thursday, May 24, 2001 6:04 AM

> To: ASP Databases

> Subject: [asp_databases] HELP

> 

> 

> Hi,

> 

>      Can someone please set me straight on the

> ADOVBS.inc file.  Everytime I

> try to use pages that I have to use <!--#include

> file="adovbs.inc"--> I get

> an error stating that the include file cannot be

> found.  Can someone please

> explain to me what I am suppose to do with this file

> and be specific.  I

> have found information on the problem but not

> exactly how to solve it.

> 

>      Am I suppose to add it to my global.asa file

> for each product or does

> it go into my root directory on the server (which I

> did and it hasn't

> helped).  This is driving me crazy, no matter what I

> do it doesn't work.

> 

>     Would appreciate any help that someone can give

> me.  This is holding up

> work for me.

> 

> 

> 

> Thanks so much

> Karen

> 

> ---

> * Fast, Full-Featured Microsoft® Excel Web Reports &

> Charts!

> A breakthrough in high performance Web application

> development, SoftArtisans

> ExcelWriter 1.1 supports native Excel charting,

> image insertion, and

> advanced functions & formatting. One click generates

> presentation-quality

> Excel spreadsheets-and ExcelWriter performs over 100

> times faster than the

> Excel Object. Several editions, including

> ExcelWriterFREE, are available.

>

URL:<http://adtracking.wrox.com/track.asp?x=p2p%2Fe%2Fd%26w%2Fsoftart&url=http://www.softartisans.com/softartisans/excelwriter.ht
ml>

> 

>

Message #4 by "Tomm Matthis" <matthis@b...> on Thu, 24 May 2001 15:18:50 -0400
If you add it to the global.asa then you do it via a META tag....

In other pages you use the include verbage.... make sure that the path 

is correct.

In the example you give below, the file must reside in the same 

directory as the page that is calling it.



-- Tomm



> -----Original Message-----

> From: Fagan, Karen A (ARINC) [mailto:FaganKA@n...]

> Sent: Thursday, May 24, 2001 9:04 AM

> To: ASP Databases

> Subject: [asp_databases] HELP

>

>

> Hi,

>

>      Can someone please set me straight on the ADOVBS.inc file. 

> Everytime I

> try to use pages that I have to use <!--#include

> file=3D"adovbs.inc"--> I get

> an error stating that the include file cannot be found.  Can

> someone please

> explain to me what I am suppose to do with this file and be specific.  

I

> have found information on the problem but not exactly how to solve it.

>

>      Am I suppose to add it to my global.asa file for each product or 

does

> it go into my root directory on the server (which I did and it hasn't

> helped).  This is driving me crazy, no matter what I do it doesn't 

work.

>

>     Would appreciate any help that someone can give me.  This is

> holding up

> work for me.

>

>

>

> Thanks so much

> Karen



Message #5 by "Charles Feduke" <webmaster@r...> on Thu, 24 May 2001 13:30:46 -0400
	As I'm sure you're aware of what the adovbs.inc file contains (all kindsa

constants and what not).  Here's how file and virtual works:



	#include file is relative to the current working directory.  So if you did

<!--#include file="adovbs.inc" --> on a directory that looks something like:

www.yourserver.mil/acronym/unit/user/acronym/file.asp then the "adovbs.inc"

file *must* be in the /acronym/unit/user/acronym/ directory.  Obviously not

very useful in this instance.



	However, #include virtual starts at the root of the server (against all

known SSI standards), so no matter what directory you're in, you can always

do <!--#include virtual="adovbs.inc" --> as long as the "adovbs.inc" file

appears at the root of your server (personally all my incs go into a

/resources folder off the root).



	You could include this file at the top of all your pages, *or* you can make

a hard-linked object reference to the ADODB DLL in the global.asa.  If you

do the latter (which I have not yet done) then if a critical error occurs

with your site or the library, you must reboot the server.



? Chuck



> -----Original Message-----

> From: Fagan, Karen A (ARINC) [mailto:FaganKA@n...]

> Sent: Thursday, May 24, 2001 9:04 AM

> To: ASP Databases

> Subject: [asp_databases] HELP

>

>

> Hi,

>

>      Can someone please set me straight on the ADOVBS.inc file.

> Everytime I

> try to use pages that I have to use <!--#include

> file="adovbs.inc"--> I get

> an error stating that the include file cannot be found.  Can

> someone please

> explain to me what I am suppose to do with this file and be specific.  I

> have found information on the problem but not exactly how to solve it.

>

>      Am I suppose to add it to my global.asa file for each product or does

> it go into my root directory on the server (which I did and it hasn't

> helped).  This is driving me crazy, no matter what I do it doesn't work.

>

>     Would appreciate any help that someone can give me.  This is

> holding up

> work for me.

>

>

>

> Thanks so much

> Karen



Message #6 by "Fagan, Karen A (ARINC)" <FaganKA@n...> on Thu, 24 May 2001 14:14:48 -0400
Mike,



   Thanks alot,,that seemed to the trick for me!!



Karen



-----Original Message-----

From: Michael Filip [mailto:mzcfilip@y...]

Sent: Thursday, May 24, 2001 12:49 PM

To: ASP Databases

Subject: [asp_databases] RE: HELP





John almost go it...

when you specify "file" for your include location, it

needs the literal location of the include file on your

server.  This means that, yes, you need the include

file in each directory in which files use it IF your

include line in said files uses "file=3D".  However, I'm

sure you (and everyone else) will agree that copying

the file into each directory is stupid...



So, instead of "file=3D" then use "virtual=3D" !  Put

adovbs into your root web directory, and use this

line:



<!--#include virtual=3D"/adovbs.inc"-->



S'all you need...

HtH

 - mike




  Return to Index