Código ASP:
Ver originalSet fso = Server.CreateObject("Scripting.FileSystemObject")
Function Exist(foto)
If fso.FileExists(Server.MapPath(foto)) Then Exist = True Else Exist = False
End Function
Código ASP:
Ver originalIF Exist("carpetadonde_esta_el_documento/"&Recorset("archivo")) then ' si el archivo existe lo muestra
<a href="carpetadonde_esta_el_documento/<%=Recorset("archivo")%>">ICONO</a>
End IF