后退按钮被禁用在IE 7,8为ASP.NET网站 [英] Back Button gets Disabled on IE 7,8 for an ASP.NET site

查看:122
本文介绍了后退按钮被禁用在IE 7,8为ASP.NET网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在一个ASP.NET 3.5的网站,我们注意到,后退按钮不能正常工作。如果用户没有几个回传(如10倍),比开始pressing后退按钮 - 用户得到通过的所有页面之前返回按钮被禁用。该网站不使用AJAX.net。

In an ASP.NET 3.5 website we are noticing that the back button is not working properly. If the user does several postbacks (say 10 times), and than starts pressing back button - the back button gets disabled before the user gets through all the pages. The site does not use AJAX.net.

我可以重现该问题上的IE 7和8几乎总是。这个问题似乎与某种限制的IE浏览器的历史缓存对于给定的标签/实例。在我做了测试后向服务器请求大 - 83K左右,而且反应是是圆的300K。看来,这些要求大小的历史并没有持有超过4项。那一刻我到5后,我已经选择的第一个项目将被丢弃。

I can reproduce the issue on IE 7 and 8 almost always. The problem seems to be with some sort of limit IE has on History Cache for a given tab/instance. In the tests I did the post request to the server are large - around 83k, and the responses are are round 300k. It seems that with these request sizes the history does not hold more than 4 items. The moment I get to the 5 post, the first item i had selected is dropped.

推荐答案

我们经历了同样的问题。我们将加载特定页面,约5秒钟后,IE8浏览器的历史将得到交口称赞。其结果是,history.back()是行不通的,而IE8后退按钮是行不通的。最后,我们把范围缩小到大型的视图状态(在我们的情况下,对视图状态大小就像600KB由于启用有视图状态,中继器控制)。当我们禁用的中继器控制视图状态,大小下来到约11KB。现在,无论是IE8后退按钮和history.back()很好地工作。

We experienced the same issue. We would load a particular page, and after about 5 seconds, IE8 browser history would get blown away. As a result, history.back() would not work, and IE8 back button would not work. Eventually, we narrowed it down to the large "viewstate" (In our case, the size of the "viewstate" was like 600KB due to "Repeater" control having "viewstate" enabled). When we disabled the "viewstate" on the "Repeater" control, the size came down to about 11KB. Now, both IE8 back button and history.back() work well.

这篇关于后退按钮被禁用在IE 7,8为ASP.NET网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆