I probably found the solution to this. It turns out my host
put my sites
on different servers...:( Consequently, the script couldn't
find the file.
> Below is a sample of what I am doing. It checks if an
image exists and
> on the server. If the product image doesn't exist, it
looks for group
> image. If that one doesn't exist, it should display a
"no image"
> message. That's it in a nutshell.
>
> I was wondering if there's anything glaringly
wrong...Thanks.
>
> <%Set
fs=Server.CreateObject("Scripting.FileSystemObject")%>
> <% strFile1 = "f:\path\to\images\science\DD" &
> (rsRecordset.Fields.Item("ProductID").Value) &
".jpg" %>
> <% strFile2 = "f:\path\to\images\science\DD" &
> (rsRecordset.Fields.Item("gid").Value) & ".jpg"%>
> <%If ((fs.FileExists(strFile1))=true) Then%>.
> <img
> src="
http://www.domain.com/prodPix/science/DD<%=(rsRecordset.Fields.Item("ProductTable").Value)%>.jpg"
>
alt="<%=(rsRecordset.Fields.Item("Name").Value)%>"/>
> <% If ((fs.FileExists(strFile1))<>true AND
> ((fs.FileExists(strFile2))=true)) Then %>
> ..<img
> src="
http://www.domain.com/prodPix/science/DD<%=(rsRecordset.Fields.Item("GroupID").Value)%>.jpg"
>
alt="<%=(rsRecordset.Fields.Item("Name").Value)%>"/><br
/>
> <span class="style2">Photo is of Parent
Grouping</span>
> <% If ((fs.FileExists(strFile1))<>true)
> AND((fs.FileExists(strFile2))<>true) Then %>
> <div class="rightcontent">No Image Available
</div>
> <%end if 'strFile1 %>
> <%end if 'strFile2 %>
> <%end if 'both false %>
> <br />