I have a page where I submit some data, and return to the original form with a ‘Save Successful’ message. However, the user would like the ability to return to the previous page they were at (which contains search results) by clicking the browser’s ‘Back’ button. However, due to the postback, when they click the ‘Back’ button they do not go to the previous page ,they simply go to the same page (but at its previous state). I read that enabling SmartNavigation will take care of this issue (postbacks appearing in the history) however, it has been deprecated. What’s the ‘new’ best practice?
*Edit – I added a ScriptManager control, and wrapped the buttons in an UpdatePanel, however now I’m receiving the following error:
Type 'System.Web.UI.UpdatePanel' does not have a public property named 'Button'
Am I missing a reference?
*Disregard the above edit, I simply forgot to add the < ContentTemplate > section to the UpdatePanel 😛
If you put your ‘Save’ button in an UpdatePanel, the postback will not show in the users history.