[ Contents | Search | Post | Reply | Next | Previous | Up ]
![]()
From: Jay S. Van Zeeland
Date: 3/26/99
Time: 10:04:14 AM
I am looking for some help in determining whether or not a file exists. I am trying to create a site that Displays a picture along with as certain description. I don't have pictures for all descriptions so I'd like to check for the existance of the pix and if it doesn't exist, place up a jpg that states no photo available.
I have tried many types of tests including simple If...Then., FileSystemObject and a function that I found on another ASP site(free snippet). All of these return false as the variable.
If anyone could help me with this I would really appreciate it. Please e-mail me at jayvz@itol.com.
I have included the snippets that I need to get to work... If MyFileObject.FileExists("cars/CStr(fp_rs(VIN)).jpg") THEN ' Response.Write("<img src=cars/CStr(fp_rs(VIN)).jpg width=236 height=173 align=right border=0>") ' ELSE ' Response.Write("<img src=cars/nophoto.gif width=236 height=173 align=right border=0>") ' END IF
PS. I have started the page in FrontPage and will clean it up once it's working.
Please Help and Thank you in advance.
Jay S. Van Zeeland jayvz@itol.com
![]()