Managing Browser History Using Client Script Without ScriptManager

Download

Right click “Save as…”

ASP.NET Ajax has a great feature that helps make it easy to enable back/forward button and bookmarking support in your Ajax applications.  However, most people think you need ASP.NET WebForms and the ScriptManager control to take advantage of this feature.  Furthermore, most people think you actually have to be using ASP.NET to take advantage of these capabilities.  You don’t.  There’s a walkthrough on MSDN showing how to use this capability purely from client side JavaScript:

Managing Browser History Using Client Script

Basically, the walkthrough shows you how to use Sys.Application.navigate event and the Sys.Application.addHistoryPoint method.  Once you understand these two, it is pretty simple. 

The challenge with MSDN sample is that it leaves the reader to figure out how to accomplish the same thing without ASP.NET WebForms and the ScriptManager control.  In this screencast, Marc takes the guesswork out of it and shows you how implement the sample without the ScriptManager as well as doing it using ASP.NET MVC.

Sample Download:

http://blogs.msdn.com/devkeydet/archive/2010/02/09/screencast-managing-browser-history-using-client-script-without-scriptmanager.aspx

Tags:

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.