Show image dynamically
-
Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards Vijay s
-
Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards Vijay s
that is the problem with everyone.... browsers do show pages from their cache.... one need to make it sure that browser is set to check updates of webpages on every visit.... only the it brings newer versions of pages on every time
Ashish Sehajpal
-
Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards Vijay s
-
Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards Vijay s
yes. you have to refresh that page after changing the image path in DB
Best Regards ----------------- Abhijit Jana "Success is Journey it's not a destination"
-
Hi, I am showing image dynamacally.I got image path from database. After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image. (I think first time browser getting the image from temporary internet file).Do u have any Idea ?
Thank & Regards Vijay s
Vijayitsb wrote:
After I changed the image in that path with same name but its showing old one.once i click refresh button of browser its showing updated image.
Hope you are not changing image path directly through query analyzer. Browsers will cache the images depends on the URL. So if you can append some timestamp/random values to the end of URL, it won't be cached and when new image uploaded, it will show that immediately. Assume initially your image path is something like /somedirectory/someimage.jpg You can change that to /somedirectory/someimage.jpg?random=append some random value here avoid caching Note : This will stop browser from caching the image. So if this page is visited frequently, browser has to load image each time.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions