c# - Replacing images with same names in folders -


a.) When I use the code to remove, 123.jpg lets say upload another image and rename that image Image123.jpg and keep it in folder images to show the new image for any reason, but delete the image using the dimensions of the image. Using a repeater here to display the image .................

B.) When I just copy And past say Image99.jpg In my Pics folder that all are ready to be an Image99.jpg, then surely it changes to the original one. So for some reason it has to be cached, as it shows the first image even when I run my page. Using a normal image control here ................

Why it A and b A This is more important for me because I need to change the image name when The user clicks on "change" logo ".

The browser caches images, so if You change an image that you change Url, which requests the image to see the new image.

You can do it either:

  1. Change the name of the image. / P>

  2. Add a Query String to the URL, which you change.

If you add a version number to the URL, for example For images / image123.jpg? Version = 42 and when you replace the image, the version number will increase, the browser will request a new image from the server because browse Cache files based on full URL, not simply name the file.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -