<!--#include file="../inc/sqlconn.asp"-->
给你一个'AnnexICON.asp的参考实例<!--#include file="../inc/sqlconn.asp"-->
<%
strid=unescape(Request.QueryString("id"))'这个就是从xmlhttp.open('get','AnnexICON.asp?id='+strid+'&n='+Math.random(),true); 获取到的ID值
if int(strid)=0 then
str="<img src='../Images/nopic.jpg' border='0' align='absmiddle' width='25' height='25' alt='no attachements'> "
else
set rs=conn.execute("select attachements from Informations where id="&strid)
if rs.bof and eof then
str="<img src='../Images/nopic.jpg' border='0' align='absmiddle' width='25' height='25' alt='no attachements'> "
else
str=iconfile(rs(0))
end if
end if
rs.close
set rs=nothing