错误类型:ADODB.Field (0x800A0BCD)BOF 或 EOF 中有一个是“真”,或者当前的记 20
错误类型:ADODB.Field(0x800A0BCD)BOF或EOF中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。/cs/huifu.asp,...
错误类型:
ADODB.Field (0x800A0BCD)BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。/cs/huifu.asp, 第 170 行.
以下是代码:
Set R = Server.CreateObject("ADODB.Recordset")
R.ActiveConnection = MM_conn_STRING
R.Source = "SELECT * FROM yh WHERE id = " + Replace(R__MMColParam, "'", "''") + ""
R.CursorType = 0
R.CursorLocation = 2
R.LockType = 1
R.Open()
R_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>回复</title>
<style type="text/css">
<!--
.STYLE3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.style2 { font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #666666;
}
.STYLE4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: red; }
-->
</style>
</head>
<body>
<table width="100%" height="198" border="0" align="center">
<tr>
<td><img src="image/bg717.jpg" width="1024" height="198" /></td>
</tr>
</table>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
<table width="598" border="0" align="center" cellspacing="1" bgcolor="#cccccc">
<tr>
<td width="150" rowspan="2" align="center" valign="bottom" bgcolor="#f2f2f2"><p><img src="<%=(R.Fields.Item("touxiang").Value)%>" alt="" /></p>
<p><U></U><%=(R.Fields.Item("name").Value)%></p>
<p class="STYLE3"><U><U/></p></td>
<td width="441" height="26" bgcolor="#f2f2f2"><div align="right" class="style2">
<div align="right">作者于<%=(R.Fields.Item("time").Value)%>时留言 <a href="mailto:"><img src="image/MailButton.gif" width="16" height="16" /></a> <a herf="http:"><img src="image/2.jpg" width="21" height="18" /></a> <img src="image/del.gif" width="22" height="22" /></div>
</div></td>
</tr>
<tr>
<td valign="top" align="left"
background="image/bg524_2.gif" height="130"><p><font
color="#000000">
<textarea name="liuyan" cols="60" rows="5" id="liuyan"><%=(R.Fields.Item("liuyan").Value)%></textarea>
<br />
</font>
<textarea name="huifu" cols="60" rows="5" id="huifu"></textarea>
</p>
<p> </p>
<p align="center" class="STYLE4">
<input type="submit" name="Submit" value="回复" />
</p></td>
</tr>
</table>
<p></p>
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%= R.Fields.Item("id").Value %>">
</form>
</body>
</html>
<%
R.Close()
Set R = Nothing
%>
170行是
<td width="150" rowspan="2" align="center" valign="bottom" bgcolor="#f2f2f2"><p><img src="<%=(R.Fields.Item("touxiang").Value)%>" alt="" /></p>
那怎么加入容错处理?要加到哪里? 展开
ADODB.Field (0x800A0BCD)BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。/cs/huifu.asp, 第 170 行.
以下是代码:
Set R = Server.CreateObject("ADODB.Recordset")
R.ActiveConnection = MM_conn_STRING
R.Source = "SELECT * FROM yh WHERE id = " + Replace(R__MMColParam, "'", "''") + ""
R.CursorType = 0
R.CursorLocation = 2
R.LockType = 1
R.Open()
R_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>回复</title>
<style type="text/css">
<!--
.STYLE3 { font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.style2 { font-size: 11px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #666666;
}
.STYLE4 {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: red; }
-->
</style>
</head>
<body>
<table width="100%" height="198" border="0" align="center">
<tr>
<td><img src="image/bg717.jpg" width="1024" height="198" /></td>
</tr>
</table>
<form id="form1" name="form1" method="POST" action="<%=MM_editAction%>">
<table width="598" border="0" align="center" cellspacing="1" bgcolor="#cccccc">
<tr>
<td width="150" rowspan="2" align="center" valign="bottom" bgcolor="#f2f2f2"><p><img src="<%=(R.Fields.Item("touxiang").Value)%>" alt="" /></p>
<p><U></U><%=(R.Fields.Item("name").Value)%></p>
<p class="STYLE3"><U><U/></p></td>
<td width="441" height="26" bgcolor="#f2f2f2"><div align="right" class="style2">
<div align="right">作者于<%=(R.Fields.Item("time").Value)%>时留言 <a href="mailto:"><img src="image/MailButton.gif" width="16" height="16" /></a> <a herf="http:"><img src="image/2.jpg" width="21" height="18" /></a> <img src="image/del.gif" width="22" height="22" /></div>
</div></td>
</tr>
<tr>
<td valign="top" align="left"
background="image/bg524_2.gif" height="130"><p><font
color="#000000">
<textarea name="liuyan" cols="60" rows="5" id="liuyan"><%=(R.Fields.Item("liuyan").Value)%></textarea>
<br />
</font>
<textarea name="huifu" cols="60" rows="5" id="huifu"></textarea>
</p>
<p> </p>
<p align="center" class="STYLE4">
<input type="submit" name="Submit" value="回复" />
</p></td>
</tr>
</table>
<p></p>
<input type="hidden" name="MM_update" value="form1">
<input type="hidden" name="MM_recordId" value="<%= R.Fields.Item("id").Value %>">
</form>
</body>
</html>
<%
R.Close()
Set R = Nothing
%>
170行是
<td width="150" rowspan="2" align="center" valign="bottom" bgcolor="#f2f2f2"><p><img src="<%=(R.Fields.Item("touxiang").Value)%>" alt="" /></p>
那怎么加入容错处理?要加到哪里? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询