的用处??
本人在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文档从而达到通过的目的呢??
“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文档从而达到通过的目的呢??
...全文
相关推荐
jsp include引用非本级目录网页实现代码
include的出现方便了文件之间的引用,降低了开发难度.它的常用法是引用同级目录,本文主要介绍引用非本级目录网页,如果没有遇到这样情况下引用的朋友可以参考下,或许本文对你有所帮助
PHP中require和include路径问题详解
1 绝对路径、相对路径和未确定路径 相对路径 相对路径指以.开头的路径,例如 复制代码 代码如下: ./a/a.php (相对当前目录) ../common.inc.php (相对上级目录), 绝对路径 绝对路径是以 / 开头或者windows下的 C:/ 类似的盘符开头的路径,全路径不用任何参考路径就可以唯一确定文件的最终地址。 例如 复制代码 代码如下: /apache/wwwroot/site/a/a.php c:/wwwroot/site/a/a.php 未确定路径 凡是不以 . 或者 / 开头、也不是windows下 盘符:/ 开头的路径,例如 复制代码 代码如下: a
ASP常见错误详解及解决方案小结-推荐第1(参考模板).pdf
ASP常见错误详解及解决方案小结-推荐第1(参考模板).pdfASP常见错误详解及解决方案小结-推荐第1(参考模板).pdf
Python之web模板应用
主要介绍了Python之web模板应用,web模板可以更加灵活和方便的控制HTML的显示,非常具有实用价值,有需要的小伙伴可以参考下
jQuery动态加载css文件实现方法
使用jQuery来加载一个外部的 css 文件,首先创建一个 link 元素,并将它添加到 标记中即可。那么基于jquery代码如何实现呢?下面小编给大家介绍jQuery动态加载css文件实现方法,需要的朋友参考下吧


