为什么我的 IE 进度条在每次加载其他页面后都会继续显示?
我看到此问题 。
我有一个相对简单的 ASP.NET 页面,带有 gridview 和一些按钮。当我单击按钮时,页面会重新绑定网格并回发。
奇怪的是,每次我单击刷新按钮时,IE 进度条(在状态区域中)都会保持“打开”状态,向用户表明页面仍在加载......永远。
我在其他页面上复制了这一点——似乎每次回发发生时都会发生。
在 IE7 和 IE8 中得到确认,但在 FF3.5 中不会发生。
有什么想法吗?
更新 1:
这似乎仅在服务器配置为 HTTP 压缩时才会发生。
无论哪种情况(压缩或未压缩),fiddler 都只显示一个已成功处理的请求。但是,当启用压缩时,我会遇到有问题的行为。
I'm seeing this issue.
I have a relatively simple ASP.NET page with a gridview and some buttons. When I click a button, the page re-binds the grid and posts back.
What's strange is that every other time I click the refresh button, the IE progress bar (in the status area) stays "on", signaling that the user that the page is still loading...forever.
I've reproduced this on other pages--it seems to occur every time a post-back occurs.
Confirmed in IE7 and IE8, but doesn't happen in FF3.5.
Any ideas?
Update 1:
This appears to happen only when the server is configured for HTTP Compression.
In either case (compressed or not), fiddler shows just a single request which is served successfully. But, when compression is enabled, I get the problematic behavior.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我过去在各种设置中都见过这种情况,但从未解决过。在一种情况下,我能够使用服务器端的诊断日志记录来确认所有 http 请求均已完成。我发现了一种可以让进度条消失的技术,尽管它确实让我感到畏缩:在一段时间后(使用 setTimeout),在页面底部写入一个 1x1 iframe,加载一个空白的 html 文件。当然,这是使用 IE5 或 IE6 或其他东西(这是很久以前的事了),所以这可能不再有效。
I have seen this in the past with various setups, and never sorted it out. In one case I was able to use diagnostic logging on the server side to confirm that all http requests were complete. I found a technique that worked in order to make the progress bar go away though it really made me cringe: After a period of time (using setTimeout), write a 1x1 iframe to the bottom of the page, loading a blank html file. Of course, this was using IE5 or IE6 or something (it was ages ago), so that may not work any longer.