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