ASP分页列表显示问题

来源:百度知道 编辑:UC知道 时间:2024/05/12 10:24:47
<form action="chaxun.asp" method="get">
<select name="te2"><option value="1">按学号查询</option><option value="3">按英语水平查询</option></select>请输入您要查询的信息:<input type="text" name="te1"/><br /><input type="submit" value="查询">
</form>
..........
if request("te2") = "3" then
yysp = cstr(request("te1"))
sqlstr = "select * from student where yysp='" & cstr(request("te1")) & "'"
set rsx=server.createobject("adodb.recordset")
rsx.open sqlstr,conn,1,3
if not rsx.eof then
response.write "<table width='750' border='0' cellpadding='0' cellspacing='1' bgcolor='#9EC3F2'>"
response.write "<tr>".....
第一个省略部分是第一个查询``第二个省略号部分是表格..下边这个查询代码只能显示一个``怎么样让它能

建立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