variable in include file

F

Frank

Hi,
It is possible to add variable into the include file.

<!--#include file="../info/<%=strfoldername%>/notetosomeone.asp"-->

strfoldername is from my database.
It doesn't work.
Anyone knows how to solve this problem.
Or has other way to do it.
Thanks,
Frank
 
M

MePadre

Include files are 'Included' before the page is
processed. With this in mind, you can not use a variable
to define the location of the include file as that
variable does not exist when the server is doing its
initial run-through of code.

You may be able to use server.transfer or server.execute
as an option.
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top