perhaps we have gotten off track.
let me re-explain my problem.
there are a bunch of files in a directory called "INCFiles".
these files each hold some HTML display content, like text or whatever.
I need to Include one of the files into my ASP page for display, not execution.
I have the file name of the one that I need to include stored in
an asp variable named fileName.
my first idea was to do the following:
<!-- #include file= <% "INCFiles/" & fileName %> -->
but this does not work because the include statement is executed (or attempted) before the fileName is appended to its path.
if you have never run into a situation like this before, its fine, I'll probably find a work-around sooner or later, but thanks for helping to try and figure it out so far!
: It executes the contest of the file. You need to figure out what the difference between include and Execute in your case. It is like a call of subroutine, but here the sub is a whole file. But all variables in the parent file are accessable in the child, though I'm not sure if otherwise is true.
: And you have to have IIS5 at least, as I remember this function is not present in IIS4
:
: : What would Server.Execute(fileName) do?
: : does it pull the contents of the file into the ASP document
: : like a #include statement does?
: :
:
:
:
Philip Patrick
:
Home page:
http://www.saintopatrick.com
:
"Two beer or not two beer?" Shakesbeer
:
: