开发者社区> 问答> 正文

使用asp查找后分页显示,第一页正常,在点击下一页时就出错? 400 报错

使用asp查找后分页显示,第一页正常,在点击下一页时就出错? 400 报错 使用asp查找后分页显示,第一页正常,在点击下一页时就出错,好像是requset当前页面的值不在存在,请问有什么方法可以解决?

展开
收起
爱吃鱼的程序员 2020-05-30 20:52:11 437 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    代码如下:

    <%
       set rs=server.createobject("adodb.recordset")
        
       cz=request("search")  '0为查找,不带search为全部显示列表没   
       xb=request.Form("xingb")
       xm=request.form("rcsearch")

       if cz="0" then
        if xm="" then
        if xb="noxz" then
         sql="select * from jyknry order by fbrq desc"
        else
          if request.Form("xingb")="1" then
         sql="select * from jyknry where xingbie='男'" & "order by fbrq desc"
         else
          if xb="2" then
          sql="select * from jyknry where xingbie='女'" & "order by fbrq desc"
         else


          '错误在这????????????????


          'if request.Form("xingb")="" then
          'sql="select * from jyknry where xingbie='女'" & "order by fbrq desc"
          'end if
         end if
         end if   
        end if
       
       
        else
        '查询名字存在
          if xb="noxz" then
        sql="select * from jyknry where xingming = '"& xm &"' "
       else
        if xb="1" then
          sql="select * from jyknry where xingming = '"& xm &"' and xingbie='男' "  & "order by fbrq desc"
        else
          sql="select * from jyknry where xingming = '"& xm &"' and xingbie='女' " & "order by fbrq desc"
        end if
        
       end if

      
        end if
     
     
        
       else 
      
          
         '不属于查询,就业困难人员全部列表         
          sql="select * from jyknry  order by fbrq desc "
        
     end if
     rs.open sql,cn,3,1
    %>

    2020-05-30 20:52:13
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载