Hello all,
this is what I got
I'd like to have this case even more dynamic by not knowing what the next case is going to be, all the If statement need to do is
but this code is not working. I tried with OpenTextFile and ReadAll or Server.Execute but what I got from these methods are strictly TEXT and all of other asp code in the included file are not generated nor executed whatsoever.
Is there another way to include a asp file as dynamically as I described on the above?
this is what I got
Code:
<%
if lcase(template)="default" then
%>
<!--#include file="templates/default/header.asp"-->
<%
elseif lcase(template)="newtemplate" then
%>
<!--#include file="templates/newtemplate/header.asp"-->
<%
else
%>
<!--#include file="templates/temple/header.asp"-->
<%
end if
%>
I'd like to have this case even more dynamic by not knowing what the next case is going to be, all the If statement need to do is
Code:
<%
template = "x"
%>
<!--#include file=templates/<%=x%>/header.asp"-->
Is there another way to include a asp file as dynamically as I described on the above?