今天,一个招聘页面的打开后,页面中出现如下提示:
ADODB.Field 错误'80020009' BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。 /ad/henganbz/zhaopin.asp,行 0
这个是新注册的企业。它有一个招聘页面,页面中出现如上提示。
经检查发现源代码中有有问题
原来是 <%for i=1 to n
if i mod 2 then %>
<%rec2.movenext%>
<%else%>
<%rec2.movenext%>
"><%end if
next
if n mod 2 then %>
<%end if
rec2.movefirst%>
修改方法是:将每一个然后在每个<%rec2.movenext%>后面加上
<%if rec2.eof then exit for end if%>
结果是:
<%for i=1 to n
if i mod 2 then %>
<%rec2.movenext%>
<%if rec2.eof then exit for end if%>
<%else%>
<%rec2.movenext%>
<%if rec2.eof then exit for end if%>
"><%end if
next
if n mod 2 then %>
<%end if
rec2.movefirst%>
更多信息请查看IT技术专栏