include virtual statements for subdomains

M

M.

Hi,

I can't get include virtual statements to work for files above or at the
same folder level of subdomains. For example:

The file with the include statement is here:
C:\main site\sub domain\file.asp

And the include statement tries to include a file from here:
C:\main site\lib\file.inc

I can't seem to get the include virtual statement to work. I keep getting:
-----------
Active Server Pages error 'ASP 0126'

Include file not found
-----------
For security reasons, I don't want to enable parent paths and use include
file statements like ../ So I only want to use include virtual statements.
Does anybody know how to do this, or is there another way? Like using JS or
VB? If there is, could you provide some sample code or kindly direct me to a
link with how to do this.

Thanks,
M.
 
J

Jens Peter Karlsen [FP-MVP]

If you don't want to use parent paths then you must use an absolute
URL.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top