I'm encountering an issue on my webforms site with 2 menus. When a button is clicked on a page, it triggers some C# events through a webservice (ajax) and then redirects to another page using history.go(-1)
. The problem arises when I create a session in the webservice that causes the menus to switch - the default menu hides and the other one shows. This menu switching logic is implemented in the Page_Load event of the Master page.
The issue occurs when using history.go(-1) to return to the previous page, as the old menu persists instead of displaying the new one. How can I resolve this dilemma?