Long story but we have a list of external URLs which point to images on another web server, which we need to display on our site via an img tag or asp:Image control. Thing is some of these URLS are incorrect and point to images that don't exist, and rather than display an empty image box with a red X, they want a replacement image instead. Basically, they want us to guard against their own bad data. I know it's additional overhead but it's what they want, I think I can optimise it by caching the state of the external image for a time. But File.Exists("http://www.example.com/image123.jpg"); should do the trick. If you know of a more efficient way let me know. Cheers! :)
Dominic Pettifer Blog: www.dominicpettifer.co.uk