Reputation: 43815
I have been unable to find anything using the google... If I write on my ASP.NET code page:
<!-- #include file="file_to_include.aspx" -->
the file is output to the page. How do I disable this behavior?
Upvotes: 1
Views: 355
Reputation: 57877
Even Newer Answer Now with More Cowbell!
It turns out you can disable Server Side Includes in the Web Service Extensions Manager of IIS:
Just select Server Side Includes
and click the Prohibit
button.
Answer #2Newer Answer:
How about disabling server side includes in IIS?
Old Answer
If you use a Server Side comment, that should work.
Try this:
<%-- <!-- #include file="file_to_include.aspx" --> --%>
Upvotes: 5