我的数据库是ACCESS,有些字段比如“备注”可能会没用内容,但也要输出显示,可没内容的就会显示为空白,没有表格了,很难看,有没有办法让它不显示空白,让表格完整。谢谢大家!下面是我输出显示的代码:
<%
for i=0 to rs.Fields.Count-1
Response.Write "<td align=center nowrap><font size=2>"&Ucase(rs(i).Name)&"</font></td>"
Next
%>
</tr>
<%
rs.MoveFirst
Do While NOT rs.EOF
Response.Write "<tr>"
FOR i=0 to rs.Fields.Count-1
Response.Write "<td align=center nowrap><font size=2>"&rs(i).Value&"</font></td>"
Next
rs.MoveNext
Response.Write "</tr>"
Loop
%>
[此贴子已经被作者于2005-11-30 14:50:15编辑过]