2023-06-25 14:08:26 來自:123.194.210.24
 回覆
1樓. 回覆 : 1532 時間 : 2023-06-25 14:21:23
<!-- #include file ="..Date.asp -->
Note By default, parent paths are disabled in IIS 6. To enable parent paths, you must manually set the AspEnableParentPaths property in the metabase to TRUE.
2樓. 回覆 : 1532 時間 : 2023-06-25 14:20:52
方法2:使用#include file語句和相對文件路徑
要解決此問題,請在 Test.asp 網頁中使用 #include 文件語句和相對文件路徑。請考慮以下代碼示例: 以下代碼行不起作用。
<!-- #include virtual ="../Date.asp" -->
3樓. 回覆 : 1532 時間 : 2023-06-25 14:20:25
IIS 6 中託管的 ASP 網頁時,可能會收到“ASP 0126”錯誤消息
以下是解決方法。
方法一:使用#include虛擬語句和絕對文件路徑
要解決此問題,請在 Test.asp 網頁中使用 #include 虛擬語句和絕對文件路徑。請考慮以下代碼示例: 以下代碼行不起作用。
<!-- #include virtual ="../Date.asp" -->
以下代碼行有效。
<!-- #include virtual ="Samples/Includes/Date.asp" -->