Click to See Complete Forum and Search --> : Picture not refreshing


newvisva
January 28th, 2004, 11:25 PM
A simple question...

I create a graph when users does a query. The problem is when they do the 2nd time query ... the graph doesn't refresh although the physical file was changed.

I had to press F5 in order to get it refresh...

Any idea how i could refresh it in code.... Thanks

ZoSoo7
January 29th, 2004, 04:33 PM
You image is cached.

newvisva
January 30th, 2004, 08:32 AM
Yes I know it's cached and it's located at the internet temporary dir. Any workaround on this?

Thanks

Andy Tacker
January 30th, 2004, 08:47 AM
Although i am not working in ASP.NET much.
but i know for sure that whenever a change is made and you have something like "Submit/ OK" button.
the page is refreshed.
and hence in Page_Load Function, you can load/refresh the picture.

and if you are creating the file, dynamically in Internet Temporary files, you must be sure whether you are accessing the same file. cos one and the same file can be saved under same name but different content. as far as i remember.

newvisva
February 1st, 2004, 08:29 AM
Andy Tacker,

I also had the same thought as u... but no good news :(.

Right now I just generate diff file name so that IE will forget about caching the pic and redirect to the new title pic.

If u or anyone out there... can give me an answer... pls do

Thanks...