469,290 Members | 1,838 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

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

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
Jul 19 '05 #1
4 6908
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.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2
GAT

try this ???

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


"Mike Combe" <mi**@e-zsoftware.com> wrote in message
news:d2*************************@posting.google.co m...
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

Jul 19 '05 #3
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.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #4
Mike Combe wrote:
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


http://www.aspfaq.com/show.asp?id=2042

HTH,
Bob Barrows
Jul 19 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Geoffrey KRETZ | last post: by
4 posts views Thread by neilcancer | last post: by
2 posts views Thread by Ken Foskey | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.