Block Pages on Saturday & Sunday

Block entrance to a part of your site on Saturdays and Sundays. There should be a warning like "today is Saturday, the site is closed, come back Monday"
<%
varDayOfTheWeek = Weekday(Now())

If (varDayOfTheWeek = 1) OR (varDayOfTheWeek = 7) Then

Response.Write("Please come back on Monday")

Else

'-- show page normally

End if
%>




Back To Top
© 1998 - 2024 psacake.com
Version 7.21 | Advertise on this site