生成静态页问题

来源:百度知道 编辑:UC知道 时间:2024/05/27 13:43:17
asp的输出的没有问题,但生成静态页以后每页只显示当页的最后一条记录
必须在rs.open之前加上list="",然后后面用list=list&""才行,但加上了以后由于生成分页循环必须在rs.open之内,这样的话,后面的页中list内容开始不为空,就会把上一页的内容一起输出出来,这怎么办

给你一个生成静态页面的代码自己去研究一下哦
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>生成商业资讯分类</title>
</head>
<body>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #E4EDF9;
}
body,td,th {
font-size: 12px;
}
-->
</style>
<!--#include file="../../../conn/conn.asp"-->
<!--#include file="../../../inc/safe.asp"-->
<!--#include file="../../../inc/classcount.asp"-->
<%
'读取模板
set rs=server.createobject("adodb.recordset")
rs.open ("select info_list from As_shin_Temp"),conn,1,1
pencat=rs("info_list")
rs.close
'读取要生成的条数
if request("page")<