简体   繁体   English

每次回发后的Chrome Realod图像-UpdatePanel

[英]Chrome realod images after every postback - updatepanel

I have a page that's running with an UpdatePanel inside. 我有一个页面,里面运行的是UpdatePanel。 When i click in a button it does it normal postback and loads a grid. 当我单击按钮时,它会正常回发并加载网格。

The problem is: The images inside the grid and other images inside the updatepanel are "refreshing". 问题是:网格内的图像和updatepanel内的其他图像正在“刷新”。 The content(HTML/Plain text) is not....So it look's so weird to see the images reloading them self and the text being static. 内容(HTML /纯文本)不是...。所以看到图像重新加载它们本身并且文本是静态的看起来很奇怪。

I am using updateMode = 'Always'. 我正在使用updateMode ='Always'。 But already tried with mode = 'Conditional' and didn't worked. 但是已经用mode ='Conditional'尝试过,没有用。

I've tested on IE 8 and 9 and it looks fine, no image is reloading.Only on chrome. 我已经在IE 8和IE 9上进行了测试,看起来还不错,没有图像正在重新加载。仅适用于chrome。

Any ideas of what it could be? 有什么想法吗?

Yeah aleafonso, you are correct. 是的aleafonso,您是正确的。 I've tested on IIS production server and it works fine. 我已经在IIS生产服务器上进行了测试,并且工作正常。 I guess it have to do with the way IIS respond to the GET of an image. 我想这与IIS响应图像GET的方式有关。 It returns HTTP 304(not modified) after images loading the first time....that's probably making some difference. 第一次加载图像后,它返回HTTP 304(未修改)。...可能有所不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM