Click here to Skip to main content
11,500,106 members (64,184 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: ASP file include path
I am using Asp classic page.

I usually include files from local directory, so far no problem in that one.

Like i use this syntax to include a file in my asp classic page
<!--#include file=""-->  
But when i try to include file from parent directory i can't.

The syntax i used to refer parent directory file is

<!--#include file="../includes/"-->

I'm using Windows xp machine.

So please help me.
It will be more helpful if it is explained with small example.

Thanks in advance

With regards
Posted 17-Jun-12 19:48pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Finally i configured and overcome the error successfully.[^]

In windows xp machine

1) Goto IIS Manager(Run--> Type inetmgr)

2) Navigate to "Default Web site"--> Right click and select "Properties"

3) Select "Home Directory" tab and there press "Configuration" button

4) Then select "Option" tab

5) Check "Enable parent directory" option (If it is unchecked)

This clears the issue for me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 345
1 Maciej Los 290
2 DamithSL 230
3 Peter Leow 181
4 OriginalGriff 167
0 Sergey Alexandrovich Kryukov 335
1 Maciej Los 290
2 DamithSL 220
3 Peter Leow 181
4 OriginalGriff 167

Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 18 Jun 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100