遇到错误请高手帮忙看一下....
错误类型: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> </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>