Click here to Skip to main content
15,914,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In my application,I need to edit the images.I am using image control,
in that if we change 7.jpg image to 7.gif image the image is getting changed but if i try to change 7.jpg to 7.jpg the old image still stays there.what could be the reason.Please suggest...

if i use
memimage.ImageUrl = pathToCheck + "?n" + DateTime.Now.Second.ToString();

image is getting changed from 7.jpg to 7.jpg but when i try to change
7.jpg to 7.gif then first time no image is displayed there then if i try
again now image appears.


what is the solution for this?
Posted
Updated 10-Mar-10 19:26pm
v2

Browser caching.

Try deleting the bowser cache.
 
Share this answer
 
This is because of browser cache,try deleting the browser cache or change the name of image everytime.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900