关于这种BOF 或 EOF 中有一个是“真”的问题怎么解决啊
view.asp的代码
<%
pr_class=request.querystring("pr_class")
set rs=server.createobject("adodb.recordset")
sql="select * from Shop_Product where pr_class = '" & pr_class & "' "
rs.open sql,conn,1,3
if rs.eof and rs.bof then
response.Write "没有分类"
end if
if not rs.eof then
%>
中间是分页代码以及要分页的内容
<%
rs.movenext
next
%>
分页的连接
<%
rs.close
set rs=nothing
end if
%>
<%end if%>
现在问题是如果SQL语句查询的是中文字段,上个页面传中文字段用的server.URLEncode(rs("pr_class"))然后这边view.asp也能显示出来,就是点下一页的时候出现关于这种 “BOF 或 EOF 中有一个是“真”……”
但是我如果传数字过来分页就能正常使用.
希望各位朋友能帮忙解决下 谢谢了~~