M
Mike
Hello,
I'm working on a new site that has a nearly empty index file (variable
location) that includes a template file (set location) which in turn
includes two data files (variable location dependent on index file's
location). This concept worked in PHP and I'm just playing around with it
in ASP to see if it can make my site management easier because I can't move
to Apache for a while.
It seems that the template file can only include relative to itself and also
with specific paths, but it can't include relative to the original index
file. Is there a graceful way around this?
Simplified code below if it helps...
/index.asp:
<!--#include virtual="/templates/_normal.asp"-->
/templates/_normal.asp:
<!--#include file="./_data.asp"-->
<html>
<head>
<title>title</title>
<link rel="stylesheet" href="/styles/style.css">
</head>
<body>
</body>
</html>
/_data.asp - empty
The above only works if I place _data.asp in the same directory as
_normal.asp. That kinda defeats the purpose though. Ideas?
THANKS!
I'm working on a new site that has a nearly empty index file (variable
location) that includes a template file (set location) which in turn
includes two data files (variable location dependent on index file's
location). This concept worked in PHP and I'm just playing around with it
in ASP to see if it can make my site management easier because I can't move
to Apache for a while.
It seems that the template file can only include relative to itself and also
with specific paths, but it can't include relative to the original index
file. Is there a graceful way around this?
Simplified code below if it helps...
/index.asp:
<!--#include virtual="/templates/_normal.asp"-->
/templates/_normal.asp:
<!--#include file="./_data.asp"-->
<html>
<head>
<title>title</title>
<link rel="stylesheet" href="/styles/style.css">
</head>
<body>
</body>
</html>
/_data.asp - empty
The above only works if I place _data.asp in the same directory as
_normal.asp. That kinda defeats the purpose though. Ideas?
THANKS!