Microsoft VBScript 运行时错误 (0x800A000D) 类型不匹配: 'rs'
<!--#include file="conn.asp"--><html>
<head>
<link href="css.css" type=text/css rel=stylesheet>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<script type="text/javascript" src="include/admin.js"></script>
<title>管理新闻</title>
</head>
<body >
<table width="45%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#000000" class="border">
<tr class="title">
<td bgcolor="#A4B6D7" height="12"> </td>
</tr>
<tr class="title">
<td bgcolor="#A4B6D7" height="90"><table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#000000">
<tr>
<td width="21%" height="25" align="center" bgcolor="#cccccc">课程号</td>
<td width="44%" align="center" bgcolor="#cccccc">课程信息 </td>
<td width="35%" align="center" bgcolor="#cccccc">操作</td>
</tr>
<%
set rs=server.CreateObject("ADODB.Recordset")
rs.open "select class_id,class_name from class",conn,1,1
if rs.eof or rs.bof then
response.write ("暂无记录!!")
else
'实现分页功能
rs.pagesize=5
page=clng(request("page"))
if page<1 then page=1
rs.absolutepage=page
for i=1 to rs.pagesize
%>
<tr bgcolor="#ffffff">
<td height="22" align="center"><%=rs("class_id")%></td>
<td align="center"><%=rs("class_name")%></td>
<td align="center">
<a href="modify_class.asp?id=<%=rs("class_id")%>">修改</a>//修改传参处
<a href="javascript:DoEmpty('del_class.asp?class_id=<%=rs("class_id")%>');">删除</a> </td>
</tr>
<%
rs.movenext
if rs.eof then exit for
next
end if
%>
</table>
<% if page<>1 then %>
<a href=<%=path%>?page=1&page1=<%=clng(page1)%>> 第一页</a>
<a href=<%=path%>?page=<%=(page-1)%>&page1=<%=clng(page1)%>> 上一页</a>
<%end if
if page<>rs.pagecount then %>
<a href=<%=path%>?page=<%=(page+1)%>&page1=<%=clng(page1)%>>下一页</a>
<a href=<%=path%>?page=<%=rs.pagecount%>&page1=<%=clng(page1)%>>最后一页</a>
<%end if %></td>
</tr>
</table>
<br>
</body>
</html>
modify_calss.asp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.
<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加课程信息</title>
<script language="JavaScript" type="text/javascript" src="../js/function.js"></script>
<script language="javascript">
function check()
{
if (document.myform.class_name.value == "")
{window.alert('请输入课外活动名称!!');
document.myform.class_name.focus();
return false;}
return true
}
</script>
</head>
<body>
<table width="45%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" colspan="2"><div align="center"><strong>修改课程信息</strong></div></td>
</tr>
<form action="save1.asp" method="post" name="myform" onsubmit="return check()">
<tr>
<td width="16%" height="30"><div align="center">课程名称:</div></td>
<td width="84%" height="30"><input name="class_name" type="text" value="<%=rs("class_name")%>"></td>//错误的地方
</tr>
<tr>
<td height="30" colspan="2"><div align="center">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置">
</div>
</td>
</tr>
</form>
</table>
</body>
</html>
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'rs'
不知道为什么出错了? 谢谢