ASP比较内行的进来看看!
lsqlz 2006-07-19 03:22:26 调试ASP报错 帮小弟看看
错误类型:
ADODB.Field (0x80020009)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
源代码
<%
if session("id")="" then
response.redirect "../login/login.asp?pageid=main"
response.end
else
id=session("id")
%>
<!--#include file="dbconn.asp"-->
<!--#include file="../inc/confignew.asp"-->
<%
Set rssort= Server.CreateObject("ADODB.Recordset")
sortsql="select * from class1"
rssort.open sortsql,conn,1,1
%>
<%do while not rssort.eof%>
<TR>
<td width="33%" height="25" align="left"><p style="line-height: 150%"> <a
href="buop.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a></td>
<%rssort.movenext%>
<td width="33%" height="25" align="left"><p style="line-height: 150%"> <a
href="buop.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a></td>
<% rssort.movenext %>
<td width="33%" height="25" align="left" ><p style="line-height: 150%"> <a
href="buop.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a></td>
</TR>
<%
rssort.movenext
loop
rssort.close
%>