Does anybody know how to Include a dynamic file?
That means if user enter some name, I can include the file
with this name. I use
<!--#INCLUDE FILE=<%=includefilename%>.asp-->
but does not work.
Please help
Thanks
Printable View
Does anybody know how to Include a dynamic file?
That means if user enter some name, I can include the file
with this name. I use
<!--#INCLUDE FILE=<%=includefilename%>.asp-->
but does not work.
Please help
Thanks
Includes are processed before ASP, so that won't work. Check
www.aspfaq.com, IIRC they've got a writeup of workarounds for this.
Beginner wrote in message <3a27aa98$1@news.devx.com>...
>
>Does anybody know how to Include a dynamic file?
>That means if user enter some name, I can include the file
>with this name. I use
><!--#INCLUDE FILE=<%=includefilename%>.asp-->
>but does not work.
"Beginner" <htpai@yahoo.com> wrote:
>
>Does anybody know how to Include a dynamic file?
>That means if user enter some name, I can include the file
>with this name. I use
><!--#INCLUDE FILE=<%=includefilename%>.asp-->
>but does not work.
>
>Please help
>Thanks
filename = request ("file_name")
<!--#INCLUDE FILE="<%=filename"%>"-->
This would't work.
Thanks Kris.
I've got the solution on:
http://www.aspfaq.com/faq/faqShow.asp?fid=10
"mario" <sss@noonr.vom> wrote:
>
>"Beginner" <htpai@yahoo.com> wrote:
>>
>>Does anybody know how to Include a dynamic file?
>>That means if user enter some name, I can include the file
>>with this name. I use
>><!--#INCLUDE FILE=<%=includefilename%>.asp-->
>>but does not work.
>>
>>Please help
>>Thanks
>
>
>filename = request ("file_name")
><!--#INCLUDE FILE="<%=filename"%>"-->
>
>