History Support in the Microsoft AJAX Library

You can implement history in JavaScript by serializing the current state of the page or a control and storing that object as a history point. As a user performs actions, history points are saved in the Sys.Application object. These history points are accessed as the user navigates with the Back or Forward button, allowing the user to return to previous application contexts.

To enable history support in the Sys.Application object, you need to set the ScriptManager control to enable history. The property EnableHistory enables AJAX history support for all modern browsers by using a combination of a hidden IFrame, form actions, the URL, and the browser’s native history API. Because different browsers implement ...

Get Developing Service-Oriented AJAX Applications on the Microsoft® Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.