的用处??
本人在ASP文档里面插入<!-- #include file="xxx.asp" -->这句命令,但在执行之后,浏览器却显示:
“Microsoft VBScript 运行时错误 错误 '800a000d'
类型不匹配: 'ReadAllData'
/xxx.asp,行16 ”
且插入的xxx.asp的文档源代码如下:
<%
'Dim pathinfo
pathinfo=server.MapPath ("./")
conGuestbook= pathinfo&"\gg.dat"
conBasePath= pathinfo&"\"
conRootpath=pathinfo
conOldPath= "./"
conPassword= "sdboy"
'Const ForReading = 1, ForWriting = 2, ForAppending = 3
'Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
'Const conSeperater="<|>"
'Dim RawData()
%>
<%'Dim Max
Max=ReadAllData(conGuestbook)
DisplayList2
%>
</body>
</html>
<%
Sub DisplayList2
%>
<%If Max=0 Then%>
<p align="center" class="basic"><font color="#FF0000">目前还没有留言</font></p>
<%Else
'Dim I,Items
start=Request.QueryString ("start")
last=start+cint(Request.QueryString ("count"))
if start=glast then glast=glast+2
if glast>Max-1 Then glast=Max-1
For I=start to glast
Items=SparseItem(RawData(I))
%>
<Tr> <TD bgColor="#f8f8f8"> <IMG src="img/point.gif" width="9" height="9"><%=Items(7)%> </TD> </tr>
<%
Next
%>
<%
End If
End Sub
%>
请问,插入这句命令要有什么条件嘛?在其他的文档中就能顺利通过啊!
还有,是不是可以修改上面的xxx.asp文档从而达到通过的目的呢??