一个ASP的判断语句
原:
<a href="qc_disp.asp?id=<%=rs("id")%>" target="_blank"><img src="<%=rs("pic")%>" width="100" height="100" border="1"></a>
要改成
如果<%=rs("pic")%>为空
那么<%=rs("pic")%>=pic/1.gif
参考答案:<a href="qc_disp.asp?id=<%=rs("id")%>" target="_blank"><img src="
<% if rs("pic")="" then
response.write "pic/1.gif"
else
response.write rs("pic")
end if
%>" width="100" height="100" border="1"></a>
参考资料: