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