| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 518 人关注过本帖
标题:遇到错误请高手帮忙看一下....
只看楼主 加入收藏
peiyanjian
Rank: 1
等 级:新手上路
帖 子:96
专家分:0
注 册:2008-2-29
收藏
 问题点数:0 回复次数:2 
遇到错误请高手帮忙看一下....
错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: ''
/swd/update_stu_xx.asp, 第 39 行


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; MAXTHON 2.0)

网页:
GET /swd/update_stu_xx.asp




<%
set conn=server.createobject("adodb.connection")
DSNtemp = "Driver={Microsoft Access Driver (*.mdb)};"
DSNtemp = DSNtemp & "DBQ=" & server.mappath("/swd/date/student.mdb")
conn.open DSNtemp
sql="select * from stu where id= '"+xingming+"' "
'xuehao = request.querystring("id")
'stext = "select * from stu where id=" &xuehao
'set rs = conn.execute(stext)
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>个人情况</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>&nbsp;</p>
<div align="center">
  <table width="100%" border="1" cellpadding="0" cellspacing="0" bgcolor="#82BEF6">
    <!--DWLayoutTable-->
    <tr>
      <td height="50"  colspan="2"  valign="top"><div align="center"><strong><font color="#000000" size="7" face="方正舒体, 方正姚体, ">个人情况登记表</font></strong></div></td>
    </tr>
    <tr>
      <td width="2" height="4"></td>
      <td width="985"></td>
    </tr>
    <tr>
      <td height="295"></td>
      <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
          <!--DWLayoutTable-->
          <tr>
            <td width="518" height="227" valign="top"><table width="100%" border="1" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                  <td width="100" height="21">
<div align="center"><strong>姓名</strong></div></td>
                  <td width="105" ><div align="center">
                     <input type="text" name="xingming" size="15" value="<%=(RS.Fields.Item("xingming").Value)%>">  这是第39行.问题就在这里了....
                    </div></td>
                  <td width="190"><div align="center"><strong>担任职务</strong></div></td>
                  <td colspan="3" valign="top" ><div align="center">
                      <input type="text" name="zhiwu" size="15" value="<%=(RS.Fields.Item("zhiwu").Value)%>">
                    </div></td>
                </tr>
                <tr>
                  <td height="20"> <div align="center"><strong>出生年月</strong></div></td>
                  <td><div align="center">
                       <input type="text" name="chushengnianyue" size="15" value="<%=(RS.Fields.Item("chushengnianyue").Value)%>">
                    </div></td>
                  <td><div align="center"><strong>入伍时间</strong> </div></td>
                  <td width="105" ><div align="center">
                       <input type="text" name="ruwushijian" size="15" value="<%=(RS.Fields.Item("ruwushijian").Value)%>">
                    </div></td>
                  <td width="100" ><div align="center"><strong>政治面貌</strong> </div></td>
                  <td width="111" ><div align="center">
                       <input type="text" name="zhennzhiminamiao" size="15" value="<%=(RS.Fields.Item("zhengzhimianmiao").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>民族</strong></div></td>
                  <td ><div align="center">
                       <input type="text" name="minzu" size="15" value="<%=(RS.Fields.Item("minzu").Value)%>">
                    </div></td>
                  <td ><div align="center"><strong>入伍地区</strong> </div></td>
                  <td ><div align="center">
                       <input type="text" name="ruwudiqu" size="15" value="<%=(RS.Fields.Item("ruwudiqu").Value)%>">
                    </div></td>
                  <td ><div align="center"><strong>党团时间</strong> </div></td>
                  <td ><div align="center">
                     <input type="text" name="dangtuanshijian" size="15" value="<%=(RS.Fields.Item("dangtuanshijian").Value)%>">
                    </div></td>
                <tr>
                  <td height="25" valign="top"><div align="center"><strong>文化程度</strong></div></td>
                  <td><div align="center">
                       <input type="text" name="wenhuachengdu" size="15" value="<%=(RS.Fields.Item("wenhuachengdu").Value)%>">
                    </div></td>
                  <td ><div align="center"><strong>籍贯</strong> </div></td>
                  <td ><div align="center">
                       <input type="text" name="jiguan" size="15" value="<%=(RS.Fields.Item("jiguan").Value)%>">
                    </div></td>
                  <td ><div align="center"><strong>邮政编码</strong> </div></td>
                  <td ><div align="center">
                       <input type="text" name="youzhengbianma" size="15" value="<%=(RS.Fields.Item("youzhengbianma").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>班级</strong></div></td>
                  <td><div align="center">
                       <input type="text" name="banji" size="15" value="<%=(RS.Fields.Item("banji").Value)%>">
                    </div></td>
                  <td ><div align="center"><strong>学号</strong> </div></td>
                  <td ><div align="center">0
                       <input type="text" name="xuehao" size="15" value="<%=(RS.Fields.Item("xuehao").Value)%>">
                    </div></td>
                  <td><div align="center"><strong>电话号码</strong> </div></td>
                  <td ><div align="center">
                       <input type="text" name="lianxidianhua" size="15" value="<%=(RS.Fields.Item("lianxidianhua").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"> <div align="center"><strong>家庭住址</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                       <input type="text" name="jiatingzhuzhi" size="15" value="<%=(RS.Fields.Item("jiatingzhuzhi").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>学习情况</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                       <input type="text" name="xuexiqingkuang" size="15" value="<%=(RS.Fields.Item("xuexiqingkuang").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>个人奖励</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                     <input type="text" name="gerenjiangli" size="15" value="<%=(RS.Fields.Item("gerenjiangli").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>违纪情况</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                       <input type="text" name="weijiqingkuang" size="15" value="<%=(RS.Fields.Item("weijiqingkuang").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>个人评定</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                      <input type="text" name="gerepingding" size="15" value="<%=(RS.Fields.Item("gerenpinading").Value)%>">
                    </div></td>
                <tr>
                  <td height="20"><div align="center"><strong>支部评定</strong></div></td>
                  <td colspan="5" valign="top" ><div align="center">
                      <input type="text" name="zhibupingding" size="15" value="<%=(RS.Fields.Item("zhibupingding").Value)%>">
                    </div></td>
              </table></td>
            <td width="448" border="1" rowspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                <!--DWLayoutTable-->
                <tr>
                  <td width="447" border="1" height="264" valign="top" >
        <%if rs("zhaopian")<>"" then%><a href="<%=rs("zhaopian")%>" target="_blank">
      <%end if%>
                    <img src="<%if rs("zhaopian")="" then%>images/tupian.gif<%end if%><%if rs("zhaopian")<>"" then%><%=rs("zhaopian")%><%end if%>" name="img" width="443" height="277" border="0" id="img" /></a>
                  </td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td height="37"></td>
            <td></td>
          </tr>
          <tr>
            <td height="20"></td>
            <td></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
  </table>
</div>
</body>
</html>
搜索更多相关主题的帖子: compatible Microsoft Windows 浏览器 网页 
2008-05-13 18:13
madpbpl
Rank: 4
等 级:贵宾
威 望:11
帖 子:2876
专家分:244
注 册:2007-4-5
收藏
得分:0 
sql="select * from stu where id= '"+xingming+"' "   '这里面的xingming变量哪来的
补上一句
set rs =conn.execute sql              '缺少这一句,rs哪来的定义
2008-05-13 19:28
xxzdm
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2007-8-18
收藏
得分:0 
天才!!
2008-05-14 13:10
快速回复:遇到错误请高手帮忙看一下....
数据加载中...
 
   



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

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