1
我一直无法找到使用谷歌的什么...如果我写我的ASP.NET代码页:我可以禁用ASP.NET中的#include吗?
<!-- #include file="file_to_include.aspx" -->
文件输出到页面。我如何禁用此行为?在#include和Server Side Include(SSI)
我一直无法找到使用谷歌的什么...如果我写我的ASP.NET代码页:我可以禁用ASP.NET中的#include吗?
<!-- #include file="file_to_include.aspx" -->
文件输出到页面。我如何禁用此行为?在#include和Server Side Include(SSI)
事实证明,你可以禁用服务器端在Web服务扩展管理器IIS的包括:
只需选择Server Side Includes
并单击Prohibit
按钮。
回答#2较新的答案:
如何在IIS disabling server side includes?
老回答
如果使用Server Side comment,应该工作。
试试这个:
<%-- <!-- #include file="file_to_include.aspx" --> --%>
感谢您的回答 - 我在寻找一个更具全球性的解决方案,这样我可以阻止这种行为完全。 – 2009-08-18 17:21:19
已更新的答案。 – 2009-08-18 17:24:10
干杯 - 我会试试看。我感谢帮助! – 2009-08-18 17:29:22