ASP does not support dynamic includes (variable) by <!--#include--> tag. But if the included file is clear-text (or HTML), you can use FileSystemObject and next code to include the file :
Be sure that the client can read only allowed files (the code enables read all text files on the server !).
You can use Select Case :
for 'ASP and dynamic includes (variable include)' article
Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/ are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_DynInc/" Title="Let's you include text files to ASP by parameter (variable)." >ASP and dynamic includes (variable include)</A>
© 1996 - 2014 Antonin Foller, Motobit Software | About, Contacts | (Find us on Google+)