Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey Everyone,

I have a some code inside of an update panel. It contains textboxes, drop downs, an image and a button. When the button is clicked it is supposed to refresh the image with the new content. My update mode is conditional and I am calling the update() after the button is clicked but in IE the image is not refreshed with the correct information, but is working correctly in Chrome.

I had to add a PostBackTrigger in order to get it to work correctly.

I have tried passing in a unique image id, so IE doesnt cache the image but hasnt worked. I have also tried the below but to no avail.

Response.Cache.SetCacheability(HttpCacheability.NoCache);

and

Response.Cache.SetExpires(DateTime.Now.AddDays(-10));

I have been looking feveriously for a solution but still havent found anything. Any help would be great

thanks
Bobby
Posted
Comments
sp_suresh 22-Jan-14 20:15pm    
which IE version are you using it should be IE 8 and above
bobb024 22-Jan-14 20:16pm    
I am using IE 11
Ahmed Bensaid 23-Jan-14 10:57am    
What version of .NET framework ? What OS ?
bobb024 23-Jan-14 13:08pm    
.NET 4.5 and my dev is windows 8.1 and server is windows server 2012
samit kaneriya 24-Jan-14 6:06am    
your button is asp imagebutton ?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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