代码为:
Set rs = Server.createobject("Adodb.RecordSet")
m_SQL = "SELECT * FROM V_Article WHERE (1=1)"
m_SQL = m_SQL + "and F_SmallCategoryID =" & m_ID
m_SQL = m_SQL + " ORDER BY F_ID DESC"
rs.open m_SQL,conn,1,1
if rs.Eof then
response.write "<br><p align='center'><font color=666666><B>对不起,该类别暂无新闻!
</B></font></p><br>"
else
m_RecordCount = rs.RecordCount
rs.PageSize = m_PageSize
m_Page = rs.PageCount
if m_PageNo = "" then m_PageNo =1
if cint(m_PageNo) < 1 or cint(m_PageNo) > m_Page then m_PageNo = 1
rs.AbsolutePage = m_PageNo
rc = m_PageSize
re = 1
m_Count = 1'另加
Do while not rs.eof and rc>0
m_Count = m_Count +1'另加
if m_Count mod 2 then m_BgColor = "ffffff" else m_BgColor = "f2f2f2" '另加
'---------------------------------
'调用显示内容
ShowContent()
'---------------------------------
rs.MoveNext
re = re+1
rc = rc-1
Loop
rs.Close
End if
提示错误为:
错误类型:
ADODB.Field (0x***********)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/news/Category.jsp
參考答案:程序错误!
重新编译!