P
prabhupr
Hi All
I have this requirement which I dont know how to (brain dead), may be
somebody can shed some light.
We have Photos (saved as JPG's) in file system, the naming convention
is <PhotoID>.jpg
where the PhotoID matches the ID in a SQL Database table column.
In the UI we used <img> tag to display this photo against each ID. The
requirement is, within UI, is there anyway I can check if that JPG
exists, and if it does not then use Default.jpg?
Something like
<img... photo25.jpg> OR <img... Default.jpg>
Thanks
PP
I have this requirement which I dont know how to (brain dead), may be
somebody can shed some light.
We have Photos (saved as JPG's) in file system, the naming convention
is <PhotoID>.jpg
where the PhotoID matches the ID in a SQL Database table column.
In the UI we used <img> tag to display this photo against each ID. The
requirement is, within UI, is there anyway I can check if that JPG
exists, and if it does not then use Default.jpg?
Something like
<img... photo25.jpg> OR <img... Default.jpg>
Thanks
PP