Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interesting question

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
CA
Is it possible to write some code, asp or other, that would get the link to an other image if the current image is missing. This way you wouldn't get a broken image. I would use direct linking to server x, if server x goes down, the images on server y, the one where the page would be would use it's own images untill server x is back uo and running. Thanks for giving me some inoput or directioin in which I should be heading to solve this problem.
 
you could write code to create the page on the fly using FSO and then redirect users to the just created page...the only other way I could see that working is if you either haul the image or string path to the image from a DB. if you can't hit the DB, then you know there is a problem and can display some other image by coding around the inability to hit the db.

hth Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
or possibly (cant be bothered testing right now) you could use the Microsoft.XMLHTTP object to attempt to connect to the image, and catch any errors. codestorm
Fire bad. Tree pretty. - Buffy
select * from population where talent > 'average'
You're not a complete programmer unless you know how to guess.
I hope I never consider myself an 'expert'.
<insert witticism here>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top