Quote:
quote:Originally posted by pherms
Here is an example:
<%
if bla="blabla" then
%>
<%
end if
%>
|
Perhaps the reason you think that works is because you are missing the ever critical # that makes the comment into an include directive.
To prove that all files are always included, try this:
<% If False Then %>
<% End If %>
When I run this, I get this error despite a condition that ensures that the include file will never be processed:
Error Type:
Active Server Pages, ASP 0126 (0x80004005)
The include file 'nonExistantFile.html' was not found.
/test/asp/conditionalIncludes.asp, line 10
Peter
-------------------------
Work smarter, not harder