Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-11-2002, 04:39 PM   PM User | #1
russellcurtis
New to the CF scene

 
Join Date: Oct 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
russellcurtis is an unknown quantity at this point
Server Side Includes

Hello everyone. I'm struggling with what should be a fairly simple problem to solve, so sorry if this is a stupid question.

I'm trying to get a menu to appear in every page on my site using server-side includes in the form:

<!--#include file="/include/thisfile.asp" -->

assuming that the first forward-slash would locate the file from the root of the site. However, when I try this (I'm using MS IIS 5 on a Win2k machine) I get the following message:

Active Server Pages error 'ASP 0130'
Invalid File attribute
/directory/default.asp, line 9
File attribute '/include/thisfile.asp' cannot start with forward slash or back slash.

My question is, then, how can I reference a file relative to the server root without resorting to:

<!--#include file="http://www.mysite.com/include/thisfile.asp" -->

as I have a lot of these, and all these DNS queries will slow me right down.

Any help you guys can give would be really appreciated.

Cheers

Russell[B][I]Active Server Pages error 'ASP 0130'
russellcurtis is offline   Reply With Quote
Old 10-11-2002, 06:34 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Code:
<!--#include virtual="/include/thisfile.asp" -->
The configuration for ASP also has to be set to allow parent paths using the MMC for IIS.
Roy Sinclair is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:33 PM.


Advertisement
Log in to turn off these ads.