专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > ASP

ADODB.Recordset (0x800A0BB9) 参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。pu5/105_search/01_p002.asp, 第 87 行解决思路

发布时间:2010-05-20 14:01:29 文章来源:www.iduyao.cn 采编人员:星星草
ADODB.Recordset (0x800A0BB9) 参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。pu5/105_search/01_p002.asp, 第 87 行
代码如下:
<!--#include file="../05_data/inc/DataConn99.asp"-->
<%
session("a1")=Trim(request.Form("select1"))
session("a2")=Trim(request.Form("select2"))
session("a4")=Trim(request.Form("select4"))
session("a5")=Trim(request.Form("select5"))
session("a6")=Trim(request.Form("Luxury"))
session("a7")=Trim(request("action")) 
session("pricefrom")=Trim(request("pricefrom"))
session("priceto")=Trim(request("priceto"))


pricefrom=session("pricefrom")
priceto=session("priceto")
select1=session("a1")
select2=session("a2")
select3=session("a3")
select4=session("a4")
select5=session("a5")
Luxury=session("a6")
action=session("a7")

response.Write(""&select1&"")
response.Write(""&select2&"")
response.Write(""&pricefrom&"")
response.Write(""&priceto&"")
response.Write(""&select4&"")
response.Write(""&select5&"")
response.Write(""&Luxury&"")
if action="search" then

if pricefrom="select3" and priceto="select3" then
 if select1="select1" then
  if select2="select2" then
  if select4="select4" then
if select5="select5" then  
if Luxury="" then
str3="select * from table_105_01 order by id"
else
str3="select * from table_105_01 where d_001=true"
end if
else 
if Luxury="" then 
str3="select * from table_105_01 where a010='"&select5&"' order by id"
else
str3="select * from table_105_01 where a010='"&select5&"' and d_001=true order by id"
end if
end if
else
if select5="select5" then  
if Luxury="" then
str3="select * from table_105_01 where a009='"&select4&"' order by id"
else
str3="select * from table_105_01 where a009='"&select4&"' and d_001=true order by id"
end if
else
if Luxury="" then
str3="select * from table_105_01 where a009='"&select4&"'and a010='"&selset5&"'order by id"
else
str3="select * from table_105_01 where a009='"&select4&"'and a010='"&selset5&"' and d_001=true order by id"
end if
end if

 
end if
end if
end if
end if
end if

set rp=server.CreateObject("adodb.recordset")  
rp.open str3,conn,3,3
 
pagesetup=10'设定每页的显示数量
rp.pagesize=pagesetup
TotalPage=rp.pagecount '总页数
PageCount = cint(Request.QueryString("ToPage"))
if PageCount <1 then PageCount = 1
if PageCount > TotalPage then PageCount = TotalPage
if TotalPage>0 then rp.absolutepage=PageCount '跳转到指定页数
%>
老是 提示rp.open str3,conn,3,3
出现错误
请哪位高手指点指点

------解决方案--------------------

第一页显示正常

当你点击下一页时,虽说是提交给了本页,但是变量就都没了,需要进行传递







------解决方案--------------------
把分页的代码贴出来,应该是参数为空出错
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

  • ASP怎么隐藏表单

    ASP如何隐藏表单 <%if Cookies_Toy ="" then response.write "<a href='login.asp'>登录</a> <a href='reg.asp'>注册</a>" ...

  • 为何js调用css脚本后没效果

    为什么js调用css脚本后没效果 这个是css的脚本代码: body,ul,li{margin: 0; padding: 0; border: 0;} body {background: #f5f...

  • 怎么伪造post请求,求指点。

    如何伪造post请求,求指点。。。 要查询大批(也就几万个)运单的状态,那查询网站一次最多查24个,这一个个搞会搞死人的。。 有...

  • Asp.net_简略代码设置GridView自适应列宽不变形

    Asp.net_简单代码设置GridView自适应列宽不变形 动态绑定的GridView由于列数不固定,而列又太多(博主做的这个项目有150个左右的字段...

  • ASP.NET上实现AJAX注册提醒

    ASP.NET下实现AJAX注册提醒 Ajax全称是,主要是利用JavaScript实现异步的数据传输,首先说异步,异步是当前操作进行的时候,用...

  • aspnet_regiis装配出错:0x80070005 拒绝访问

    aspnet_regiis安装出错:0x80070005 拒绝访问 点击右边红色标题查看本文完整版:aspnet_regiis安装出错:0x80070005 拒绝访问安装...

  • 关于网站边框解决方法

    关于网站边框 像hao123这样的网站上的边框是着么弄的?背景图片吗?http://www.hao123.com 另外哪个素材网站有实用的这内素材 -----...

  • ! 多表分组查询统计

    求助!! 多表分组查询统计 高手们,帮帮忙! 用户表 D_user 为 ID Username GroupID 1 张三 2 2 李四 2 3 王五 ...

  • 在Paypal交付的同时,把表单的数据提交给数据库

    在Paypal提交的同时,把表单的数据提交给数据库 本帖最后由 liuyang2708 于 2012-11-20 23:14:54 编辑 在提交这个支付...

  • 虚拟目录上JavaScript不能正常执行

    虚拟目录下JavaScript不能正常执行 各位大侠好,我在同一台服务器上用两种方式部署同一个网站。 第一种方法:在IIS下直接建一个网站...

热门推荐: