dw 重复区域不能转行,高手帮忙
重复区域设置之后,都是在一横排上重复,不能竖着重复,代码是:<%While((Repeat1__numRows<>0)AND(NOTRecordset1.EOF))%><...
重复区域设置之后,都是在一横排上重复,不能竖着重复,代码是:
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td><div align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div align="center"><A HREF="edituser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">编 辑</A></div></td>
<td><A HREF="deluser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">删 除</A></td> <%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
请问是什么地方出了问题啊? 展开
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<td><div align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div align="center"><A HREF="edituser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">编 辑</A></div></td>
<td><A HREF="deluser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">删 除</A></td> <%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
请问是什么地方出了问题啊? 展开
2个回答
展开全部
你要把<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
放在<tr>上,把
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
放在</tr>下
下面我已经改好了
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td><div align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div align="center"><A HREF="edituser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">编 辑</A></div></td>
<td><A HREF="deluser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">删 除</A></td> </tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
放在<tr>上,把
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
放在</tr>下
下面我已经改好了
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<tr>
<td><div align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div align="center"><A HREF="edituser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">编 辑</A></div></td>
<td><A HREF="deluser.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "m_id=" & Recordset1.Fields.Item("m_id").Value %>">删 除</A></td> </tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
展开全部
你要把<%
While
((Repeat1__numRows
<>
0)
AND
(NOT
Recordset1.EOF))
%>
放在<tr>上,把
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
放在</tr>下
下面我已经改好了
<%
While
((Repeat1__numRows
<>
0)
AND
(NOT
Recordset1.EOF))
%>
<tr>
<td><div
align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div
align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div
align="center"><A
HREF="edituser.asp?<%=
Server.HTMLEncode(MM_keepNone)
&
MM_joinChar(MM_keepNone)
&
"m_id="
&
Recordset1.Fields.Item("m_id").Value
%>">编
辑</A></div></td>
<td><A
HREF="deluser.asp?<%=
Server.HTMLEncode(MM_keepNone)
&
MM_joinChar(MM_keepNone)
&
"m_id="
&
Recordset1.Fields.Item("m_id").Value
%>">删
除</A></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
While
((Repeat1__numRows
<>
0)
AND
(NOT
Recordset1.EOF))
%>
放在<tr>上,把
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
放在</tr>下
下面我已经改好了
<%
While
((Repeat1__numRows
<>
0)
AND
(NOT
Recordset1.EOF))
%>
<tr>
<td><div
align="center"><%=(Recordset1.Fields.Item("m_id").Value)%></div></td>
<td><div
align="center"><%=(Recordset1.Fields.Item("m_name").Value)%></div></td>
<td><div
align="center"><A
HREF="edituser.asp?<%=
Server.HTMLEncode(MM_keepNone)
&
MM_joinChar(MM_keepNone)
&
"m_id="
&
Recordset1.Fields.Item("m_id").Value
%>">编
辑</A></div></td>
<td><A
HREF="deluser.asp?<%=
Server.HTMLEncode(MM_keepNone)
&
MM_joinChar(MM_keepNone)
&
"m_id="
&
Recordset1.Fields.Item("m_id").Value
%>">删
除</A></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询