I have the following code in place
The DateTimeViewed is a variable that is pulled from a database.
If CDate(FormatDateTime(DateTimeViewed,2)) > CDate("11/21/2011") AND CDate(FormatDateTime(DateTimeViewed,2)) < CDate("7/22/2012") Then
<!-- #include FILE="../Includes/assessmentfunctions.asp" -->
ElseIf CDate(FormatDateTime(DateTimeViewed,2)) < CDate("11/21/2011") Then
<!-- #include FILE="../Includes/oldassessmentfunctions.asp" -->
<!-- #include FILE="../Includes/RevisedAssessmentFunctions.asp" -->
There are some functions that have been slightly altered in the different versions of the include file
In each of the include files on the first line I write a comment out that says which file is loaded. That way I can view the source and supposedly see
Which version is being used
OK now here is the problem. I noticed that even if it writes out that it loaded AssessmentFunctions.asp, the changed function that it is using are coming from RevisedAssessmentFuntions.asp
So this leads me to believe that all of the include files are loading regardless of any if statements. Is this correct?