Hi All,
I know this will seem silly, but here is my predicament. I have an updatepanel on the page surrounding an asp:image control. It is essentially a User's profile picture. There is a link next to the picture to allow the user to change their picture. It opens a popup with a fileuploadcontrol in it and allows the user to select the image they would like to use. After scaling it down, it stores the image in a database. Then the popup closes and it turns javascript to only refresh the updatepanel on the main page.
All image downloads run through a custom httphandler that write out the bytes for the image (stored in the DB) and assigns that value to the ImageURL property of the asp:image control.
In IE v6.xxx, when the update panel refreshes, the image does as well. However, in Firefox it does not. I know that the updatepanel is indeed posting back, but the browser is not requesting the image again from the httphandler.
Is there any way to force an image not to be cached in Firefox? I know that this is considered a feature and in most scenarios I would agree - but this is one situation where I *need* the browser to request the image again.
I haven't tested this in IE 7 yet - what type of behavior can I expect?
I'd really like to avoid an entire page refresh just to refresh an image if I can help it.
Thoughts? Suggestions?
Thanks,
Greg Varveris