Forum Moderators: open
This may work because of COM components installed on my server?
I am also using includes and a little VBS to display random ads, If I could only turn random into scheduled?
SELECT CASE bla
Case 1:
<!--#include file="whatever"-->
Case 2:
etc etc etc
But the best way is probably try and database the content that changes, then provide an admin interface for making the changes - will make life a whole lot easier ;)
<%
Select "filename"
case "1"
%>
<!-- #include file="whatever" -->
<%
case "2"
%>
<!-- #include file="another" -->
<%
End Select
%>
Another idea i just had is to use the filesystem to open a dynamically named file based on the date. I havent tried it but I dont see why it cant work:
Set objText = objFile.OpenTextFile("whatever_" & getWeekNo(Now()) & ".txt",fsoForReading)
Response.write objText.ReadAll
<!--#config timefmt="%Y%m%d" -->
<!--#if expr="$DATE_LOCAL < 19980917" -->
<P>This will be shown before my birthday in 1998
<!--#endif -->
<!--#if expr="$DATE_LOCAL >= 19980917" -->
<P>This will be shown during and after my birthday in 1998
<!--#endif -->
It worked fine on another couple of pages i tried though, but the calling page only had html in it...
Def worth a try though.... i must have a play again and see if i can get it too do what i want ;)