仙剑4迷宫:简单ASP程序。有谁知道。急求!

来源:百度文库 编辑:高考问答 时间:2024/04/28 21:55:13
<%
SQL="Select * from Study_sale_net order by id desc"
Set rs=Server.CreateObject("ADODB.RecordSet")
rs.Open SQL,con,1,1
rs.PageSize=1
count=1
if Request("count")<>"" then
count=Cint(Request("count"))
if count<1 then
count=1
end if
if count>rs.PageCount then
count=rs.PageCount
end if
end if
if not rs.Bof and not rs.Eof then
rs.ABSolutePage=count
end if
pagecountx=rs.pagecount
for i=0 to rs.PageSize
if ((count-1)*rs.PageSize)+i>rs.RecordCount-1 then
exit for
end if
%>

网页调用这段代码用后。

页面要显示两个数据库的信息

我只要显示一个怎么办啊

我把rs.PageSize=1 设置为“1”还是要显示两个啊

最后一个for改成
for i=0 to rs.PageSize-1

PageSize是不每页显示数据数吧