中国建业集团股票代码:asp点击一页的时候,出现的小问题

来源:百度文库 编辑:高校问答 时间:2024/04/30 03:21:22
在点击下一页的时候,还是停留在第一页.
麻烦各位了
下面是代码.
<%
Response.write "<font color='#000000'>-> 全部-</font>"
Response.write "共</font>" & "<font color=#FF0000>" & Cstr(Rs.RecordCount) & "</font>" & "<font color='#000000'>条新闻</font>          "
Response.write "<font color='#000000'>第</font>" & "<font color=#FF0000>" & Cstr(CurrentPage) & "</font>" & "<font color='#000000'>/" & Cstr(rs.pagecount) & "</font> "
If currentpage > 1 Then
response.write "<a href='News.asp?&page="+cstr(1)+"'><font color='#000000'>首页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='News.asp?page="+Cstr(currentpage-1)+"'><font color='#000000'>上一页</font></a><font color='#ffffff'> </font>"
Else
Response.write "<font color='#000000'>上一页 </font>"
End if
If currentpage < Rs.PageCount Then
Response.write "<a href='News.asp?page="+Cstr(currentPage+1)+"'><font color='#000000'>下一页</font></a><font color='#ffffff'> </font>"
Response.write "<a href='News.asp?page="+Cstr(Rs.PageCount)+"'><font color='#000000'>尾页</font></a>  "
Else
Response.write ""
Response.write "<font color='#000000'>下一页</font>  "
End if
你好!
fanyangye
可以加我QQ吗?
我发给你源代码!
真的谢谢了!
我QQ:68762371

在你的页面只有页数发送而没有页数的接收,
在最前面加上:
rs.pagecount=Request.QueryString("page")

代码太少,看不出问题
这里看到的应该还有判断currentPage为空的情况没有写好
currentPage的赋值情况也没看到,
估计应该是
currentPage=Request.QueryString("page")