永发信息网

asp中rs.pageCount

答案:1  悬赏:30  手机版
解决时间 2021-11-26 00:41
  • 提问者网友:玫瑰园
  • 2021-11-25 19:38
asp中rs.pageCount
最佳答案
  • 五星知识达人网友:廢物販賣機
  • 2021-11-25 20:13
<%
dim page1,maxPerPage1
maxPerPage1=3
myKeyword=Request("myKeyword")

page1=Request("page")
if (page1="" or isempty(page1)) then page1=1
thisUrl="myshop.asp?action=admin1&productSort="&productSort&"&myKeyword="&myKeyword
session("adminOldUrl")=thisUrl&"&page="&page
set rs=server.createobject("adodb.recordset")
sql="select * from p where uid='"&uname&"'"
if not (myKeyword="" or isempty(myKeyword) ) then
sql=sql&" and pname like '%"&myKeyword&"%'"
end if
sql=sql&" order by id desc"

rs.open sql,conn,1,1
rs.pagesize=MaxPerPage1
%>



<%if page1>1 then%>


<%else%>


<%end if
if rs.recordCount>page1*maxPerPage1 then%>


<%else%>


<%end if%>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯