asp问题请指教...

iif 2000-06-25 04:09:00
下面的语句中
但是我有时按"上页"后下面的"未页""下页"却都没有加上链接。这是为什么?
...
<%if currentpage<2 then %>首页<%else%><a href="personlistjob.asp?currentpage=1">首页</a><%end if%> and
<%if currentpage<2 then %>上页<%else%><a href="personlistjob.asp?currentpage=<%=currentpage-1%>">上页</a><%end if%> and
<%if currentpage < rs.PageCount then %><a href="personlistjob.asp?currentpage=<%=currentpage+1%>">下页</a><%else%>下页<%end if%> and
<%if currentpage < rs.PageCount then %><a href="personlistjob.asp?currentpage=<%=rs.pagecount%>">末页</a><%else%>末页<%end if%> and
...
...全文
112 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zigzag 2000-07-05
  • 打赏
  • 举报
回复
可能是你打开记录集的方式有问题,导致pagecount无效。
beta 2000-06-26
  • 打赏
  • 举报
回复
1、open rs 后把rs.PageCount 传给变量 Lng_PageCount;把上面的rs.PageCount 改成 Lng_PageCount 再试一试
2、你的rs支持PageCount吗?看一下PageCount的值是不是-1

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧