Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: image display or not display


Message #1 by dont worry <aspmailbox@y...> on Tue, 15 May 2001 10:34:08 -0700 (PDT)
<1>if use comes to site with querystring ID then write

out ID.gif</1>



<2>Unique ID will give different images based on

querystring ID</2>



<problem>

some users come with ID that does not have a

corresponding gif image in the directory.  

</problem>



<question>

how do i check to make sure there is a corresponding

gif in my images directory so I do NOT get the red x?

</question>

Message #2 by "Ken Schaefer" <ken@a...> on Wed, 16 May 2001 12:38:37 +1000
File System Object



Database of valid images



etc



Cheers

Ken



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

: <1>if use comes to site with querystring ID then write

: out ID.gif</1>

: 

: <2>Unique ID will give different images based on

: querystring ID</2>

: 

: <problem>

: some users come with ID that does not have a

: corresponding gif image in the directory.  

: </problem>

: 

: <question>

: how do i check to make sure there is a corresponding

: gif in my images directory so I do NOT get the red x?

: </question>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Message #3 by Ben Meghreblian <benmeg@b...> on Wed, 16 May 2001 00:11:03 +0100
Hi,

         The immediate solution that comes to mind is using the 

FileSystemObject to attempt to open the file in question, and trap the 

error if the file does not exist, perhaps spitting out an error.gif or the 

like instead.



Have a search on http://msdn.microsoft.com for FileSystemObject



Cheers,



Ben



At 23:35 15/05/01 +0100, you wrote:

><1>if use comes to site with querystring ID then write

>out ID.gif</1>

>

><2>Unique ID will give different images based on

>querystring ID</2>

>

><problem>

>some users come with ID that does not have a

>corresponding gif image in the directory.

></problem>

>

><question>

>how do i check to make sure there is a corresponding

>gif in my images directory so I do NOT get the red x?

></question>

>

>---

>SoftArtisans helps developers build robust, scalable Web applications!

>Excel Web reports, charts: http://www.softartisans.com/excelwriter.html

>File uploads: http://www.softartisans.com/saf.html

>Transactional file management: http://www.softartisans.com/saf1.html

>Scalability: http://www.softartisans.com/saxsession.html

>ASPstudio value pack: http://www.softartisans.com/aspstudiosuite.html








http://benmeg.com



Home 020 8892 8744

Mobile 0771 30 555 82



PGP: 5950 6447 2FB2 3314 F57D  82B2 7EF8 B51A 2DE5 5E08



This email and any files transmitted with it are confidential and intended 

solely for the use of the individual or entity to whom they are addressed. 

If you have received this email in error please notify the system manager.




  Return to Index