I want to includes files into a page depending on an include variable. I could use a case statement to decide which include file to use, but that requires a manual adjustment every time a new option is added. I'd rather create the include statement dynamically, but it doesn't seem to want to let me do that (when I print the include statement it simply prints it into the source and doesn't execute it). Does anyone know a solution to this?
ASP and dynamic includes
Page 1 of 13 Replies - 2242 Views - Last Post: 13 December 2001 - 08:09 AM
Replies To: ASP and dynamic includes
#2
Re: ASP and dynamic includes
Posted 12 December 2001 - 02:44 AM
you can't do a dynamic include with asp, since the server first checks the includes, and after that compiles the source...
this is the same problem i had with my skin-system, so i got this solution:
<%
Select Case Session("skinname")
Case "simplestyle"
%> won't work :(
regards
#3
Re: ASP and dynamic includes
Posted 12 December 2001 - 06:55 AM
Yeah, I've pretty much given up trying... it's a shame, as that would be SO helpful...
#4
Re: ASP and dynamic includes
Posted 13 December 2001 - 08:09 AM
sorry
ikonboard wanted to include my html code...
ikonboard wanted to include my html code...
post messed up :(
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|