这个asp如何分页

来源:百度知道 编辑:UC知道 时间:2024/05/29 07:34:13
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="refresh" content="100">

<style type="text/css">
<!--
a:link {text-decoration: none;font-size: 12px;}
a:visited {text-decoration: none;font-size: 12px;}
a:hover {text-decoration: blink;font-size: 12px;}
a:active {text-decoration: none;font-size: 12px;}

BODY{
FONT-SIZE: 12px;
FONT-FAMILY: 宋体;
}
TD{
font-family: 宋体;
font-size: 12px;
line-height: 15px;
}
-->
</style>
<script language=javascript>
function SetSayObj(name)
{
parent.inputView.document.form_chat.elements[1].value=name;
}
</script>
<body text="#000000" leftmargin="0" topmargin="0">
<table cellspacing=1 cellpadding=0 width="795" height=100% border=0 class=tableBorder1 align

建立access的数据库news,还有表news,表的字段(id,title),id唯一,输入数据保存,用下面代码可查询,可分页
-----------------------下面保存为search.asp--------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件</title>
</head>
<body bgcolor="#ffffff">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<script>
function btn_ck_bh_Click()
{
var cx = document.form1.cxsj.value;
form1.action ="search.asp?cx="+cx;
}
</script>
<table border="1" cellspacing="0" bgcolor="#F0F8FF" bordercolorlight="#4DA6FF" bordercolordark="#ECF5FF" width="88%" style="word-break:break-all">
<tr>
<td width="778" align="center" colspan="7">
<form me