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 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog