Managing Browser History Using Client Script Without ScriptManager
- Posted: Feb 09, 2010 at 10:11 AM
- 4,699 Views
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
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.
Follow the Discussion
Oops, something didn't work.
What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in. You need to be signed in to Channel 9 to use this feature.What does this mean?
Following an item on Channel 9 allows you to watch for new content and comments that you are interested in and view them all on your notifications page.sign up for email notifications?