Discussion Locked

ASP - variable in an include

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is it possible to have a dynamic variable in an include statement? If so, how?

This is the concept:

<%
includefile = "content.asp"
%>

2 replies

by fofa

I don't think you can do that, but have you tried putting the includes inside an if/select statement to see if that will limit them?

by kirkk

Yes, I now am using a select statement to choose which include to use. I think you've confirmed this is the best way to go.
Thanks

This discussion is closed to new replies.