| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 402 人关注过本帖
标题:Microsoft VBScript 运行时错误 (0x800A000D)
只看楼主 加入收藏
fengmnll
Rank: 1
等 级:新手上路
帖 子:79
专家分:3
注 册:2008-11-6
结帖率:85.71%
收藏
 问题点数:0 回复次数:1 
Microsoft VBScript 运行时错误 (0x800A000D)
edit_class.asp
<!--#include file="conn.asp"-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body  vLink=#000000 bgColor=#cad7f7>
<table width="655" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
  <tr>
    <td width="655" height="30">
            <table width="654" border="0" cellspacing="0" cellpadding="0">
                       <tr>
                  <td height="17" colspan="4">&nbsp;</td>
                       </tr>
          <%  
                  set rs=server.CreateObject("ADODB.Recordset")
                  
                  sql="select class_id,class_name,term_class from Class"
                  rs.open sql,conn,1,3
                  rs.pagesize=10
               if rs.eof then
                  rs_total=0
               else
               rs_total=rs.recordcount
               end if
                 dim pageno
                 maxpage=rs.pagecount
                 getpageno=(request.QueryString("pageno"))
               if request.QueryString("pageno")="" then
                 pageno=1
               else
               
               if request.QueryString("pageno")>rs_total then
               pageno=rs_total
               end if
                 pageno=getpageno
               end if
               if not rs.eof then
                 rs.absolutepage=pageno
               end if            
           %>
                       <tr>
                         <td height="30" colspan="4">&nbsp;
                           <%for i=1 to maxpage%>
                           <a href="edit_class.asp?pageno=<%=i%>"><%=i%></a>
                         <% next %></td>
                       </tr>
                       <tr>
                         <td width="39" height="30"><div align="center">ID</div></td>
                         <td width="233"><div align="center">课程/环节</div></td>
                         <td width="196"><div align="center">学年学期</div></td>
                         <td width="186"><div align="center">操作</div></td>
                       </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30"><table width="641" border="0" cellpadding="0" cellspacing="0">
       <% i=1
              do while not rs.eof
              
              if i>rs.pagesize then  exit do  end if%>     
      <tr>
        <td width="41" height="30">&nbsp;<%=rs("class_id")%></td>
        <td width="232">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=rs("class_name")%></td>
        <td width="195">&nbsp;<%=rs("term_class")%></td>
        <td width="173" align="center" bgcolor="#CCCCCC" style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 1px; PADDING-TOP: 1px; BORDER-BOTTOM: #000000 1px dotted">『 <A href="delete_class.asp?class_id=<%=rs("class_id")%>" onclick="return confirm('确认要删除此行信息吗?')">删除</A> 』 『 <A href="save_class_infor.asp?class_id=<%=rs("class_id")%>">修改</A> 』</td>
      </tr>
      <%
            i=i+1
            rs.movenext
               loop
             %>
    </table></td>
  </tr>
  <tr>
    <td height="30">&nbsp;</td>
  </tr>


save_class_infor.asp
<!--#include file="conn.asp"-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<body>
<form name="form1" method="post" action="save_class.asp">
  <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td width="138" height="13"><div align="center">ID:</div></td>
      <td height="25" colspan="2">&nbsp;<%=rs("class_id")%></td>
    </tr>
    <tr>
      <td height="25"><div align="center">课程环节:</div></td>
      <td height="25" colspan="2"><input type="text" name="class_name" id="class_name" value="<%=rs("class_name")%>" ></td>
    </tr>
    <tr>
      <td height="12"><div align="center" >学年学期:</div>        </td>
      <td height="12" colspan="2"><input type="text" name="term_class"  id="term_class" value="<%=rs("term_class")%>"></td>
    </tr>
    <tr>
      <td height="25">&nbsp;</td>
      <td width="276" height="25">&nbsp;</td>
      <td width="86"><input type="submit" name="Submit" value="提交"></td>
    </tr>
  </table>
</form>
</body>
</html>

</table>

</body>
</html>
错误原因是:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'rs'
麻烦问一下是什么原因呢?谢谢!


搜索更多相关主题的帖子: head html Microsoft content include 
2010-05-13 09:42
gupiao175
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:40
帖 子:1787
专家分:7527
注 册:2007-6-27
收藏
得分:0 
错误原因是:
Microsoft VBScript 运行时错误 (0x800A000D)
类型不匹配: 'rs'
这个错误出现在哪个页面edit_class.asp还是save_class_infor.asp??或者其他??是一进如这个页面就出错了,还是在edit_class.asp里点修改的时候就出错了??具体提示在哪行,用红色字体标出!

Q:1428196631,百度:开发地 即可找到我,有事请留言!
2010-05-13 11:21
快速回复:Microsoft VBScript 运行时错误 (0x800A000D)
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019471 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved