dball917
dball917

Reputation: 442

IE7 Back Button loses history in .NET application

In maintaining an ASP.Net application, I've come across an unusual problem with the Back Button in IE7. After selecting a few links to the aspx pages and then pressing the Back Button once, IE's Back Button greys out and the drop-down Quick History contains no more entries. This is obviously incorrect since multiple links were clicked to get you to that point. Opening the actual History shows the complete trail, but for some reason the Back Button just can't figure out that there are more pages.

Now for some details:

I've done the requisite Google search and came up with a few hits, but they mostly said either "That's just how IE is" or "Use a REAL browser like Firefox" neither of which are helpful. Can anybody shed some light on this issue?

Thanks!

Upvotes: 3

Views: 916

Answers (3)

Robert
Robert

Reputation: 1845

It's the Ajax component, you are refreshing parts of a single page. You are not reloading the page everytime. Page reloads are another full request from the server, even if it is requesting the same page, you have submitted different information and the code behind is probably using this data to render the page differently.

When using Ajax you are having some control over which part of the page is reloading but this is all done with javascript, somewhere, somehow and as such you are not populating the browsers history records in the normal manor. It is true different browsers will handle this differently.

Upvotes: 0

Nicholas Head
Nicholas Head

Reputation: 3726

Is your Ajax library actually contributing to the browser's history, though? Most Ajax libraries have ways of dealing with this. jQuery has a history plugin, Microsoft's Ajax has a History control..

Upvotes: 1

CRice
CRice

Reputation: 12567

If "Setup uses a Master page that has disabled page caching (HttpCacheability.NoCache)" then this is probably the reason. Try allowing cache again and see if that works.

Upvotes: 0

Related Questions