
出现了BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录的错误 5
代码如下<formname="form1"method="post"action=""><tablewidth="600"height="195"border="1"al...
代码如下
<form name="form1" method="post" action="">
<table width="600" height="195" border="1" align="center">
<tr>
<th height="64" colspan="4" scope="col"><span class="style1">编辑与修改新闻</span></th>
</tr>
<tr>
<td width="163" height="65"><div align="center" class="style3">日期</div></td>
<td width="259"><div align="center" class="style2">新闻标题</div></td>
<td colspan="2"><div align="center" class="style3">删除/修改</div></td>
</tr>
<tr>
<td height="56"><%
While ((Repeat1__numRows <> 0) AND (NOT renews.EOF))
%>
<%=(renews.Fields.Item("news_adddate").Value)%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
renews.MoveNext()
Wend
%>
</td>
<td height="56"><%=(renews.Fields.Item("news_subject").Value)%></td>
<td width="84" height="56"><div align="center" class="style4">del</div></td>
<td width="66"><div align="center" class="style4">edit</div></td>
</tr>
</table>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="31%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一页</a>
<% End If ' end Not MM_atTotal %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
</form> 展开
<form name="form1" method="post" action="">
<table width="600" height="195" border="1" align="center">
<tr>
<th height="64" colspan="4" scope="col"><span class="style1">编辑与修改新闻</span></th>
</tr>
<tr>
<td width="163" height="65"><div align="center" class="style3">日期</div></td>
<td width="259"><div align="center" class="style2">新闻标题</div></td>
<td colspan="2"><div align="center" class="style3">删除/修改</div></td>
</tr>
<tr>
<td height="56"><%
While ((Repeat1__numRows <> 0) AND (NOT renews.EOF))
%>
<%=(renews.Fields.Item("news_adddate").Value)%>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
renews.MoveNext()
Wend
%>
</td>
<td height="56"><%=(renews.Fields.Item("news_subject").Value)%></td>
<td width="84" height="56"><div align="center" class="style4">del</div></td>
<td width="66"><div align="center" class="style4">edit</div></td>
</tr>
</table>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_moveFirst%>">第一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="31%" align="center"><% If MM_offset <> 0 Then %>
<a href="<%=MM_movePrev%>">前一页</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveNext%>">下一页</a>
<% End If ' end Not MM_atTotal %>
</td>
<td width="23%" align="center"><% If Not MM_atTotal Then %>
<a href="<%=MM_moveLast%>">最后一页</a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
</form> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询