I have this Sub FileExist() that checks to see if a picture is in that location and either returns the pictures or returns a picture that says "no image available"
For some reason i can not get it to work. it keeps returning the 'nofile' response even though i know the 'file' is there.
Dim file, nofile As String
file = "http://www.bakerabilene.com/BAMEQ/" & txtSearchBAM.Text & "/1.jpg"
nofile = "http://www.bakerabilene.com/BAMEQ/NoImage.jpg"
If System.IO.File.Exists(file) = True Then
Image0.ImageUrl = file
Image0.ImageUrl = nofile
I was trying to use the server.mappath which i have got to work on another project but i cant seem to get it to work either.