check if image or file exists
- From: Filip De Backer <filip_de_backer@xxxxxxxxxxxx(donotspam)>
- Date: Wed, 22 Jun 2005 03:41:02 -0700
Hi everyone,
I want to check if a certain file or image exists.
The picture exists when I use th eurl in my IE, but in my C# code, the if
statement returns false.
Is there another way to do this?
string PictureUrl =
"http://www.lessius-ho.be/webapp/personeelsindex/images/543.jpg";
if (File.Exists(PictureUrl))
{
imgFotoPersoon.ImageUrl = PictureUrl;
imgFotoPersoon.Visible = true;
}
else
{
imgFotoPersoon.Visible = false;
}
thanks in advance,
Filip De Backer
.
- Follow-Ups:
- RE: check if image or file exists
- From: Harolds
- RE: check if image or file exists
- Prev by Date: How to get physical path
- Next by Date: List'o MyProj CSS Elements?
- Previous by thread: How to get physical path
- Next by thread: RE: check if image or file exists
- Index(es):
Relevant Pages
|