baidu_28505081 2015-05-28 13:39 采纳率: 0%
浏览 1503

网站产品搜索结果页翻页出错 asp 菜鸟求问

翻页后的结果如下图
图片说明

搜索功能按钮部分html:
图片说明

search.asp文件内容:

 <!--#include file="inc/AspCms_SettingClass.asp" -->
<%
echoContent()
Sub echoContent()
    dim page,keys
    page=filterPara(getForm("page","both"))
    keys=filterPara(getForm("keys","both"))
    if isNul(keys) then alertMsgAndGo "请输入关键词","-1"
    if isNul(page) then page=1
    if isNum(page) then page=clng(page) else echoMsgAndGo "页面不存在",3 end if

    dim templateobj,channelTemplatePath : set templateobj=new TemplateClass
    dim typeIds,rsObj,rsObjtid,Tid,rsObjSmalltype,rsObjBigtype
    Dim templatePath,tempStr    
    templatePath=sitePath&"/"&"templates/"&setting.defaultTemplate&"/"&setting.htmlFilePath&"/search.html"  
    'die templatePath
    if not CheckTemplateFile(templatePath) then echo "search.html"&err_16

    with templateObj 
        .content=loadFile(templatePath) 
        .parseHtml()
        .parseCommon()      
        .parseList 0,page,"searchlist",keys,"searchlist"        
        echo .content 
    end with
    set templateobj =nothing : terminateAllObjects
End Sub
%>

网站后台 search.html文件搜索部分功能代码:

 <div class="package">
  <h2 class="tit"><em class="fl"><img src="/templates/cn/style/images/ico17.png" class="png"/></em><span class="fl">搜索</span><span class="all_bg"></span></h2>
<ul class="list_05">
{aspcms:searchlist size=20 order=id} 
<li><span class="fr">[[searchlist:date style=yy-m-d]] </span><a href="[searchlist:link]" title="[searchlist:title]">[searchlist:title]</a>  
</li>
{/aspcms:searchlist} 
 </ul>
<!--分页开始-->
<div style="height:7px;clear:both"></div>
<div class="pcauto_page">
[searchlist:pagenumber len=5]
</div>
<!--分页结束-->
  • 写回答

4条回答

  • baidu_28505081 2015-05-28 13:40
    关注

    好像是 点击页面后,没有把 相关的参数传过去,请问具体怎么修改?本人菜鸟,谢谢各位指导下。

    评论

报告相同问题?

悬赏问题

  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制