| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 776 人关注过本帖
标题:[求助]翻页的时候为什么页数超过十就不能翻页了?
取消只看楼主 加入收藏
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
 问题点数:0 回复次数:6 
[求助]翻页的时候为什么页数超过十就不能翻页了?
翻页的时候为什么页数超过十就不能翻页了?

按下页的时候总是刷新
2006-08-16 13:39
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 
[求助]


<%
set rsc = server.CreateObject ("Adodb.recordset")
sqlc="select * from Pro_class order by ID"
rsc.open sqlc,conn02,1,1


set rsn1 = server.CreateObject ("Adodb.recordset")
sqln1="select * from Pro_nclass order by PID"
rsn1.open sqln1,conn02,1,1
PID=rsn1("PID")
OID=rsn1("ID")

set rsn = server.CreateObject ("Adodb.recordset")
if request("NID")="" then
sqln="select * from Pro_NClass where PID="&PID&" order by PID"
else
sqln="select * from Pro_nclass where PID="&request("NID")
end if

rsn.open sqln,conn02,1,1


%>

<%if request("Nname")<>"" then
Nname=request("Nname")
response.Write(Nname)
elseif request("NID")<>"" then
set rsb= server.CreateObject ("Adodb.recordset")
sqlb="select * from Pro_NClass where PID="&request("NID")
rsb.open sqlb,conn02,1,1
nameb=rsb("name")
response.Write(nameb)
elseif request("NID")="" and request("Nname")="" then

response.Write("产品列表")
end if%> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<table width="500" border="0" cellspacing="20" cellpadding="0">
<tr>
<td valign="top">
<table width="500" border="0" align="center" cellpadding="1" cellspacing="6">
<%
set rs = server.CreateObject ("Adodb.recordset")
if request("OID")="" and request("NID")="" then

sql="select * from Pro_obj where nclassID="&OID
elseif request("NID")<>"" and request("OID")="" then
set rsa= server.CreateObject ("Adodb.recordset")
sqla="select * from Pro_NClass where PID="&request("NID")
rsa.open sqla,conn02,1,1

sql="select * from Pro_obj where NClassID="&rsa("ID")
else
sql="select * from Pro_obj where NClassID="&request("OID")
end if

rs.open sql,conn02,1,1
OID1=rs("NCLassID")%>
<%
set rsc = server.CreateObject ("Adodb.recordset")
sqlc="select * from Pro_class order by ID"
rsc.open sqlc,conn02,1,1


set rsn1 = server.CreateObject ("Adodb.recordset")
sqln1="select * from Pro_nclass order by PID"
rsn1.open sqln1,conn02,1,1
PID=rsn1("PID")
OID=rsn1("ID")

set rsn = server.CreateObject ("Adodb.recordset")
if request("NID")="" then
sqln="select * from Pro_NClass where PID="&PID&" order by PID"
else
sqln="select * from Pro_nclass where PID="&request("NID")
end if

rsn.open sqln,conn02,1,1


%>
<%

DIM Pages,PageNum
rs.PageSize=4
Pages=rs.PageCount
if request("page")="" OR trim(request("page"))>trim(Pages) then
rs.AbsolutePage=1
PageNo=1
else
rs.AbsolutePage=request("page")
PageNo=request("page")
end if
j=0
Do While Not rs.EOF AND j<rs.PageSize
%>
<tr align="center">
<td width="264"><%
if rs("ID")="" then
%>
<table width="100" height="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" height="6">&nbsp;</td>
</tr>
</table>
<%
else
%>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" background="images/dot_bg.gif"><a href="pro_inner.asp?NID=<%=rsn("PID")%>&amp;OID=<%=rsn("ID")%>&amp;id=<%=rs("ID")%>&amp;Name=<%=rs("name")%>" target="_blank"><img src="./Manager/manage/leibie1/pic/pro/<%=rs("pic1")%>" alt="" width="180" border="0" /></a></td>
</tr>
<tr>
<td align="center"><a href="pro_inner.asp?NID=<%=rsn("PID")%>&amp;OID=<%=rsn("ID")%>&amp;id=<%=rs("ID")%>&amp;Name=<%=rs("name")%>" target="_blank"><%=rs("name")%></a></td>
</tr>
</table>
<%end if
rs.movenext
j=j+1
%>
</td>
<td width="236"><div align="center">
<%
if rs("ID")="" then
%>
<table width="100" height="150" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100" height="6">&nbsp;</td>
</tr>
</table>
<%
else
%>
<table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" background="images/dot_bg.gif"><a href="pro_inner.asp?NID=<%=rsn("PID")%>&amp;OID=<%=rsn("ID")%>&amp;id=<%=rs("ID")%>&amp;Name=<%=rs("name")%>" target="_blank"><img src="./Manager/manage/leibie1/pic/pro/<%=rs("pic1")%>" alt="" width="180" border="0" /></a></td>
</tr>
<tr>
<td align="center"><a href="pro_inner.asp?NID=<%=rsn("PID")%>&amp;OID=<%=rsn("ID")%>&amp;id=<%=rs("ID")%>&amp;Name=<%=rs("name")%>" target="_blank"><%=rs("name")%></a></td>
</tr>
</table>
<%end if
rs.movenext
j=j+1
%>
</div></td>
</tr>
<%
j=j+1
Loop

%>
</table>
<table align="center">
<tr>
<td><form action='<%=request.servervariables("URL")%>' method="post" name="p2" id="p2"

style="margin-bottom:0;margin-top:0">
共<%=pages%>页&nbsp; <a href='<%=request.servervariables("URL")%>?page=1&amp;OID=<%=oid1%>'

style="color:#0066ff">首页</a>&nbsp;
<%if PageNo>1 then%>
<a href='<%=request.servervariables("URL")%>?page=<%=PageNo-1%>&amp;OID=<%=oid1%>'

style="color:#0066ff">上页</a>&nbsp;
<%else%>
<font color='#555555'>上页</font>&nbsp;
<%end if%>
<%if PageNo<trim(pages) then%>
<a href='<%=request.servervariables("URL")%>?page=<%=PageNo+1%>&amp;OID=<%=oid1%>'

style="color:#0066ff">下页</a>&nbsp;
<%else%>
<font color='#555555'>下页</font>&nbsp;
<%end if%>
<a href='<%=request.servervariables("URL")%>?page=<%=pages%>&amp;OID=<%=oid1%>'

style="color:#0066ff">尾页</a>&nbsp;
</form>


2006-08-16 14:17
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 
那位大虾帮我看看啊 急啊

2006-08-16 14:37
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 

晕 死 竟然没有人会这个东西


2006-08-16 15:18
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 
谢谢你 兄弟

2006-08-16 15:25
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 
整站比较大啊   我怎么给你啊

2006-08-16 15:55
qqsheji
Rank: 1
等 级:新手上路
帖 子:78
专家分:0
注 册:2006-8-3
收藏
得分:0 
你上线啊?

2006-08-16 15:59
快速回复:[求助]翻页的时候为什么页数超过十就不能翻页了?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.042436 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved