Click to See Complete Forum and Search --> : include file


klinsmann
11-27-2003, 03:08 AM
<!-- #include file="" -->

how do I get a variable in the include file statement?
can anyone help me please.

GlennCarter
11-27-2003, 06:00 AM
I've tried a few things and I'm not totally sure it is possible.

I've tried using response.write to produce the line and although it produces the right result it doesn't include it.

I've tried using asp to insert the text in the middle but assumed the asp code was part of the filename.

Sorry about that. I think it may be to do with the way a page reads the include. I think you might have to use something other than an include.

PeOfEo
11-27-2003, 10:52 AM
you can probably just response.write it like a string and put the stuff in it.
EDIT: Whoops did not read the post above. Ill see if I cant think of something.
I GOT IT! Put the include text inside a label that is invisible and then make the label visible which will refresh the page and it will be included! Try it, see what it does.