Sign-up....

do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

我将<%do while not rs.eof%>放入到判断页面前物品后~显示正常但只为我所设置的四个物品!当我把<%do while not rs.eof%>放到物品最起端!虽可正常显示~但每一行的尾和下一行的头就会显示相同!最后页出现

ADODB.Recordset 错误 '800a0bcd'

BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。

错误指向

<%

i=i+1

if i>=MaxPerPage then exit do

rs.movenext

loop

rs.close

set rs=nothing

%>

的rs.movenext

[322 byte] By [msdn] at [2007-8-14 9:13:06]
# 1 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

代码如下!!

ftp://ftp.dtclub.cn/11.txt

doutang at 2005-5-13 12:46:31 >
# 2 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

代码帖出来。那里出错 .标明

leo963258 at 2005-5-13 12:47:57 >
# 3 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

是不是还少一个JS的脚本嘛~~~~~~~~~~~~~

"ubound"这个应该是个函数吧!

ASP0000 at 2005-5-13 14:07:18 >
# 4 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

这个不大一样的!我源码放在我的ftp上!那个11.txt的就是那部分的代码!

doutang at 2005-5-13 14:07:18 >
# 5 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

我刚刚接触asp能不能说的具体一点的??谢谢了!!

doutang at 2005-5-13 14:12:45 >
# 6 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

刚刚又调试了一下,还是有一定的问题.帮你顶,等待高手来解决!

ASP0000 at 2005-5-13 14:15:39 >
# 7 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

恩!谢谢!我也用笨笨的方法在调试!谢了先~ *^_^*

doutang at 2005-5-13 14:22:07 >
# 8 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

http://ms.mblogger.cn/net_lover/posts/8089.aspx

net_lover at 2005-5-13 14:45:49 >
# 9 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

可是我这个目前错误出现在页码哪里!!

doutang at 2005-5-13 15:16:24 >
# 10 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

这两局交换位置看看

i=i+1

if i>=MaxPerPage then exit do

改为

if i>=MaxPerPage then exit do

i=i+1

mind_1220 at 2005-5-13 15:35:19 >
# 11 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

还是不对!

我觉得问题还是出在页数的计算上面!可是具体的我调不来~头痛!头痛!

doutang at 2005-5-13 15:54:48 >
# 12 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

把rs.movenext放在最哦上面

<%

rs.movenext

i=i+1

if i>=MaxPerPage then exit do

loop

rs.close

set rs=nothing

%>

sonic18 at 2005-5-13 15:56:23 >
# 13 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

不行呀!这样子直接出现错误!嘿嘿!可能我比较菜!位置放的不对吧~嘻嘻!

doutang at 2005-5-13 16:39:24 >
# 14 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

不行!用你们的方法我也试了!跟我想弄得不大一样!

doutang at 2005-5-13 17:02:15 >
# 15 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

是不是这样?

http://www.kekecn.com/bbs/Announce/Announce.asp?BoardID=3&ID=440

jingxiaoping at 2005-5-13 17:12:08 >
# 16 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

天呀!好复杂!明天继续研究!嘻嘻!先谢过!

doutang at 2005-5-13 17:49:46 >
# 17 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

没下文啦!我还没弄出来呢~~大哥大姐们帮帮忙呀~~

doutang at 2005-5-16 9:39:42 >
# 18 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

帮帮忙哇!!!我头都快大了!

doutang at 2005-5-16 13:47:51 >
# 19 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

就是没办法正常显示!

doutang at 2005-5-16 16:38:50 >
# 20 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

那位大虾帮帮我!为这个玩意我头都快炸了!

doutang at 2005-5-17 10:20:03 >
# 21 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

求救呀!

doutang at 2005-5-17 11:01:38 >
# 22 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

不是啦!我要改下标题!!

doutang at 2005-5-17 11:03:30 >
# 23 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

怎么改不来?昏死!

麻烦看下我的源码啦!谢谢啦!

doutang at 2005-5-17 11:07:07 >
# 24 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

里面有源代码

http://sz.luohuedu.net/xml/ShowDetail.asp?id=YAWO3QGM-XD53-4D3D-OYBR-BLSBX5BNGAYM

net_lover at 2005-5-17 11:19:38 >
# 25 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

里面有源代码

http://ms.mblogger.cn/net_lover/posts/8089.aspx

net_lover at 2005-5-17 11:34:37 >
# 26 Re: do while not rs.eof 到底怎样才能让物品正常每页显示4*6个!

就是说我只需定义一个列的变量就可以了是么??

doutang at 2005-5-17 13:39:15 >

Web

All Classified