I have 30 images and next to them there is a upload button.
When you select new image and press update, it should delete the old image and save the new image with the same name and path.
I do this with:
string path = "~/Pics/Image1.jpg";
System.IO.File.Delete(Server.MapPath(path));
uploadfile.SaveAs(path);
It works,i can see the change in my folder where i keep all of my images, but in the browser i see the old image and i need to delete my cache in order to see the new image.
Is there any way i can update my images and show the new images without deleting cache from the browser?