Reputation: 15
If i include a File in classic ASP and it didnt work (maybe cause of an invalid directory), will it show the comment in the HTML Code?
Y or N is enough.
Upvotes: 0
Views: 134
Reputation: 16680
No, it will throw a runtime error not dissimilar to this;
Active Server Pages error 'ASP 0126' Include file not found /yourfile.asp, line [insert number] The include file '/includes/yourinclude.asp' was not found
Because the #include
SSI (Server Side Include) directive is pre-processed by IIS before the response is returned by a server it will never appear on the client-side as a HTML comment.
If however you remove the hash (#
) from include
it is no longer a pre-processing instruction being ignored by IIS and treated as a normal HTML comment when rendered client-side.
Upvotes: 1