有错,求救,帮忙改正一下,在线等!
答复对象 错误 'ASP 0104 : 80070057'
不允许操作
/imitate/gaoxiao.asp,行0
我以前做的都是行与行之间的循环,现在这里想实现的是一行有两列,然后行与行之间的循环。代码如下:
<!--#include file="inc/conn.asp"-->
<%j=0
sql="select top 4 * from song where class='歪唱搞笑'and isrecommend=1 order by renqi desc"
set rs_tj=server.CreateObject("adodb.recordset")
rs_tj.open sql,conn,1,3
%><table width="100%" height="318" border="0" bgcolor="#DBDBDB">
<tr>
<td height="30" bgcolor="#FFFFFF">搞笑推荐</td>
</tr>
<tr>
<%do while not rs_tj.eof
%>
<td width="50%" height="75" valign="top" bgcolor="#FFFFFF"><table width="47%" border="0">
<tr>
<td width="31%" height="25">歌手:</td>
<td width="69%"><%=rs_tj("nickname")%></td>
</tr>
<tr>
<td height="25">歌曲:</td>
<td><%=rs_tj("song")%></td>
</tr>
<tr>
<td height="25">人气:</td>
<td><%=rs_tj("renqi")%></td>
</tr>
</table></td>
<%
j=j+1
if j mod 2=0 then response.write "</tr><tr>"
loop
%>
</tr>
</table>
发现错误后,我测试了一下,在 <%
j=j+1
if j mod 2=0 then response.write "</tr><tr>"
loop
%>
之前都能正常显示,我把 <%j=j+1
if j mod 2=0 then response.write "</tr><tr>"%>屏蔽掉,还是那个答复对象错误提示。但是loop放在那里应该没问题啊,搞不清是什么原因。请高手帮帮我啊,正在郁闷中!