I have a web page that will display an image.
I created a folder within my website called 'photo' and uploaded that image to that folder using the following code: string path = Server.MapPath(@"~/Photo/"); FileUpload1.SaveAs(path+FileUpload1.FileName); I am using the following code but the image is not being displayed in the image control.
string path = Server.MapPath(@"~/Photo/");
Image1.ImageUrl = path + photoInfoObject.Photo;[photoInfoObject.Photo is a string of the name of the photo(eg: Penguins.jpg).]
still that image is not displaying.can anyone fix this?