ASP多值多字段模糊查询分页问题

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ASP多值多字段模糊查询分页问题相关的知识,希望对你有一定的参考价值。

ASP多值多字段模糊查询结果正常,但翻下一页就显示全部内容,请求大家帮忙,代码是:
<%if Page<2 then
response.write "首页 上一页 "
else
response.write "<a href=jieguo.asp?page=1>首页</a> "
response.write "<a href=jieguo.asp?page=" & Page-1 & ">上一页</a> "
end if
if rs1.pagecount-page<1 then
response.write "下一页 尾页"
else
response.write "<a href=jieguo.asp?page=" & (page+1) & ">"
response.write "下一页</a> <a href=jieguo.asp?page="&rs1.pagecount&">尾页</a>"
end if
response.write " 页次:<strong><font color=red>"&Page&"</font>/"&rs.pagecount&"</strong>页 "
response.write " 共<b><font color='#FF0000'>"&rs1.recordcount&"</font></b>条记录 <b>"&rs1.pagesize&"</b>条记录/页"
response.write " 转到:<input type='text' name='page' size=4 maxlength=10 class=input value="&page&">"
response.write " <input class=input type='submit' value=' Goto ' name='cndok'></span>"
%>
<%if Page<1 then
response.write "首页 上一页 "
else
response.write "<a href=jieguo.asp?page=1>首页</a> "
response.write "<a href=jieguo.asp?page=" & Page-1 & ">上一页</a> "
end if
if rs1.pagecount-page<1 then
response.write "下一页 尾页"
else
response.write "<a href=jieguo.asp?page=" & (page+1) &"&a="+Cstr(a)+"&b="+Cstr(b)+"&c="+Cstr(c)+"&d="+Cstr(d)+"&e="+Cstr(e)+"&f="+Cstr(f)+"&g="+Cstr(g)+"&h="+Cstr(h)+"&i="+Cstr(i)+"&j="+Cstr(j)+"&k="+Cstr(k)+"&l="+Cstr(l)+"&m="+Cstr(m)+"&n="+Cstr(n)+"&o="+Cstr(o)+"&p="+Cstr(p)+"&q="+Cstr(q)+"&r="+Cstr(r)+"&s="+Cstr(s)+"&t="+Cstr(t)" >"
response.write "下一页</a> <a href=jieguo.asp?page="&rs1.pagecount&">尾页</a>"
end if
………………
%>

下一页正常了,但点上一页或是尾页或首页就不正常了

翻页得代码中 也不包含查询信息呀 比如 你这个 "a href=jieguo.asp?page=" & (page+1) & " 只有页数 翻页不显示全部信息才怪呢 呵呵

加上就可以了

------------------------------------------------------
一样的 全部加上就可以了 比如 a href=jieguo.asp?page=" & (page+1) & "&a="+Cstr(a)+"&b="+Cstr(b)+" 依次类推就可以了
上边代码中 设定 a =request("a") 这样翻页的时候 数据就传下来了 就没问题了
-------------------------------------------------

呵呵 语句未结束??这也怪我 我根本就是指了条路 你一看就懂的 你照搬的我举的例子 不会吧????

--------------------------------------------
肯定结束不了 最后的 t 的 +呢???? 说实话 你是这个问题不会呢 还是asp就不会???
--------------------------------------------------

哈哈 这分挣得太 ...呵呵 首页 和 其它的页面同理呀 都加上就可以了
参考技术A 看不懂#

以上是关于ASP多值多字段模糊查询分页问题的主要内容,如果未能解决你的问题,请参考以下文章

求助asp两个字段中模糊查询

T-SQL---多值模糊查询的处理

多值模糊查询报表的制作

mybatis-plus模糊查询

asp+access like 模糊查询查不到内容

mysql 联合模糊查询问题?