views:

219

answers:

3

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.

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.

A: 

The user has to have gone back to the first page; that's the only way I know of to disable the back button in IE (or any other browser). Did the application open another tab; that could cause confusion on how far the back button will go.

Also, is the user getting prompted, by IE, to reapply changes when they hit the back button? I know that is an issue with ASP.NET sites in general and that could cause problems in the browser with using the back button.

Jeff Siver
well in my case i can reproduce the issue on IE 7 always. The problem might be with some sort of limit IE has. The post request are large - 83k, and the responses are 300k. It seems that this numbers the history does not hold more than 4 items. The moment i go on the 5 post, the first item is dropped.
timeitquery
A: 

window.location.replace or

history.forward();

in the head

RobIE
i do not have it on any of the JS libraries I wrote. I am using the AJAX.NET libraries in the page, not using update panel - but i am using it for a modal window.
timeitquery
A: 

This is a bug in IE that has manifested in one way or another since (at least) IE6. The bug is in the TravelLog code. It sometimes gets confused.

jeffamaphone
Anyway to avoid this bug besides cutting the POST size?
timeitquery
Not that I know of. I'm not even certain is related to POST size.
jeffamaphone