|
|
|
|
|
| | |
|
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Including files in ASP |
From: |
Jags V.M. |
Date: |
2/23/1999 3:19:55 PM |
IP: |
202.54.41.232 |
Hello...to all...
I m trying to include one file (which has common code) to all my ASP files.
I m able to do this thing using following one line at the top of all my ASP
files.
<!--#INCLUDE VIRTUAL="/webShadow/queries/common.inc"-->
But when all these ASP files are being used at some other place it's become
neccessary for them to keep virtual directory name as '/webShadow/Queries/'
only.
If virtual directory name is other than '/webShadow/Queries/' then either
all my ASP files would not work or it's required to change the above line
of code by replacing the name of virtual directory.
As I want to avoid each time changing all (around 190) ASP files can anyone
tell me some generalized way of including a file in ASP file?
I tried storing the path of my include file (here 'common.inc') in
Application variable but it's not working.
Can anyone tell me the right way of doing this thing?
Awaiting for SOOOOOOOOOOOOOOOON reply...
Thanks in advance.
Regards,
- Jags...
|
|
|

|
|
|
|
|
|
|
|
|
|