雪地跪求!会ASP的进

来源:百度知道 编辑:UC知道 时间:2024/06/11 16:29:17
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset2.EOF))
%>
<br />
<table width="100%" border="1" align="center" cellspacing="0" bordercolor="#4D5D6D">
<tr>
<td width="15%" rowspan="3"><span class="STYLE1"></span></td>
<td width="83%" height="25" align="left" bgcolor="#4D5D6D"><span class="STYLE1">回复内容:</span></td>
</tr>
<tr>
<td height="200" align="left" valign="top"><span class="STYLE1"><br />
</span><br />
<span style="font:'<%=(Recordset2.Fields.Item("ziti").Value)%>'; font-size:<%=(

在页面加判断
<%
if len(Recordset2.Fields.Item("图片字段").Value)>0 then
%>
<img src="showimg.asp?ID=<%=(Recordset2.Fields.Item("ID").Value)%>" />
<%end if%>
这样就不显示图片了

代码要在showimg.asp里面写,你可以写
假如你查询出来的数据集是rs
if rs.eof and rs.bof then
红叉子
else
显示图片
end if