LeeOvEngland, The statement is wrapped in a Try - Catch. It merrily continues on even though an invalid picture url is assigned to the Image object's ImageUrl property. It seems strange that no event is raised in this scenario. Thanks, Will
richmondwill
Posts
-
Detect Missing Image -
Facing problem with file uploadAdnan, It sounds like the script is timing out. You can set the timeout period in the ASP script to prevent this from happening. Just use the following code: Server.ScriptTimeout = 6000 The value you set is in seconds. Set this value prior to initiating the upload and you can override the default timeout period set in IIS. Cheers, Will
-
download a file in a background without Save AsSunil, No browser will allow files to be downloaded and launched without a prompt. That is a good thing. Imagine the abuses... Cheers, Will
-
Detect Missing ImageHello All, I hope this is a question with a simple solution that I've overlooked. I am loading an image reference (URL) into a ASP.NET image control when the page loads. The problem is that I'm loading a reference from an MLS system and the image link is occasionally broken. Is there a simple way to reference a property of the image control to tell if the image sucessfully loaded? If so, I can't find it. Currently I'm using code to detect if the URL is valid before setting the property of the image control. This requires a round trip to the image host server to detect a 404 response. It works, but is SLOW when there are more than a dozen pictures. I hate slow... Any help is appreciated. Cheers, Will