HOW TO.....insert a variable value in an INCLUDE fiel

M

Mike Combe

Hello All,


Given.....
<!--#include file="htm1.asp" -->


Any ideas how to make the 'htm1.asp' a variable name?

Say at one time we want to use 'htm1.asp' and another
time we want to use 'htm2.asp' as the include file.

Any ideas?


--- Mike
 
E

Evertjan.

Mike Combe wrote on 21 sep 2003 in microsoft.public.inetserver.asp.general:
Given.....
<!--#include file="htm1.asp" -->


Any ideas how to make the 'htm1.asp' a variable name?

Say at one time we want to use 'htm1.asp' and another
time we want to use 'htm2.asp' as the include file.

Bad idea, you cannot.
 
E

Evertjan.

GAT wrote on 21 sep 2003 in microsoft.public.inetserver.asp.general:
try this ???

<!--#include file="<% =varName%>" -->

Nonsense, the include is inserted before the asp rendering.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top