首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

服务器举动‘动态文本’显示出错

2012-07-15 
服务器行为‘动态文本’显示出错正常的应该是现在排列错误,变成这样,怎么弄[解决办法]代码呢?[解决办法]tr

服务器行为‘动态文本’显示出错
正常的应该是


现在排列错误,变成这样,怎么弄



[解决办法]
代码呢?
[解决办法]
<tr>
<% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
<td><%=(Recordset1.Fields.Item("员工编号").Value)%></td>
<td><%=(Recordset1.Fields.Item("姓名").Value)%></td>
<td><%=(Recordset1.Fields.Item("性别").Value)%></td>
<td><%=(Recordset1.Fields.Item("年龄").Value)%></td>
<td><%=(Recordset1.Fields.Item("电话").Value)%></td>
<% 
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</tr>
改成


<% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
<tr>
<td><%=(Recordset1.Fields.Item("员工编号").Value)%></td>
<td><%=(Recordset1.Fields.Item("姓名").Value)%></td>
<td><%=(Recordset1.Fields.Item("性别").Value)%></td>
<td><%=(Recordset1.Fields.Item("年龄").Value)%></td>
<td><%=(Recordset1.Fields.Item("电话").Value)%></td>

</tr>
<% 
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>

热点排行
Bad Request.