Forums

This topic is locked

Check that file exists, if not use other file

Posted 25 Sep 2001 11:48:49
1
has voted
25 Sep 2001 11:48:49 David G. posted:
Hi.

basically i want to do something like,

if xxxxx.jpg exists then imgsource=xxxxx.jpg else imgsource=NoImage.jpg

Only option i have found is to create a FileSystemObject, wouldn't this create a large amount of server load? Checking for 15 images per page, means we have about 20 pages.

Ultradev 4 , ASP + VBscript

Thanks for your suggestions,
Dave.

Replies

Replied 25 Sep 2001 18:08:15
25 Sep 2001 18:08:15 Viktor Farcic replied:
Why don't you insert image names in DB and then check if that field is empty?

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi.

basically i want to do something like,

if xxxxx.jpg exists then imgsource=xxxxx.jpg else imgsource=NoImage.jpg

Only option i have found is to create a FileSystemObject, wouldn't this create a large amount of server load? Checking for 15 images per page, means we have about 20 pages.

Ultradev 4 , ASP + VBscript

Thanks for your suggestions,
Dave.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

Reply to this topic