dinger2121
Programmer
Hello,
I have a web application that I am building. I have an images folder in my application. In my codebehind, I have to check to see if an image exists, if not, I apply a default image. I tried using
Request.Url.Host + "/Images/image.jpg";
but that doesn't seem to work. that is returning - "localhost/Images/image.jpg", which I thought would work, but the check in my if statement isn't catching it. Any idea what I should be using?
Thanks
I have a web application that I am building. I have an images folder in my application. In my codebehind, I have to check to see if an image exists, if not, I apply a default image. I tried using
Request.Url.Host + "/Images/image.jpg";
but that doesn't seem to work. that is returning - "localhost/Images/image.jpg", which I thought would work, but the check in my if statement isn't catching it. Any idea what I should be using?
Thanks