Home | Advertising Info80 USERS CURRENTLY ONLINE   
   Site Search Contact Us Wednesday, December 17, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP programs help tutorial tutorials routine routines jobs listserve mailinglist bulletin board bulletin boards programming snippet snippets CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
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...


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

vbscript active server pages ASP vbscript SQL database informix oracle SQL Server Perl CGI Delphi PHP source code code sample samples program CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com