P
Paul Cheetham
Hi,
I have an application that will display user-defined images in some
asp:image controls.
(sets the ImageURL, and is always built from the site root)
The problem comes when the images specified do not exist, as it displays
a red cross and the alternate text.
What I would like to do is display a default image instead.
Does anyone know of a way to do this?
I have searched all over and the control would appear to be a little
lacking in this respect. There does not appear to be a way of
determining whether or not it has successfully loaded the image, so I
don't know when to display the default.
Unfortunately I cannot use FileExists, because I do not have a physical
path.
Any help appreciated - It's driving me mad!
Thankyou.
Paul
I have an application that will display user-defined images in some
asp:image controls.
(sets the ImageURL, and is always built from the site root)
The problem comes when the images specified do not exist, as it displays
a red cross and the alternate text.
What I would like to do is display a default image instead.
Does anyone know of a way to do this?
I have searched all over and the control would appear to be a little
lacking in this respect. There does not appear to be a way of
determining whether or not it has successfully loaded the image, so I
don't know when to display the default.
Unfortunately I cannot use FileExists, because I do not have a physical
path.
Any help appreciated - It's driving me mad!
Thankyou.
Paul