I initialize the property inside the controller constructor.
public BookController() { SessionProvider.SessionLoadSceanrio = false; }
I have an action method that reset again contains a button click event property.
public ActionResult LoadScenario(int bookId) { SessionProvider.SessionLoadSceanrio = true;
The following javascript code is in my view, which is called when the button is clicked.
var BookHandler = { $("#btnLoadScen").click(function (e) { $.ajax({ url: "@Url.Action("LoadScenario", "Book")", dataType: 'json', type: 'POST', data: { 'bookId': BookHandler.getBookId() }, success: function (response) { var scenarioId = response; var isLoadScenario = "@Portal.Presentation.Web.Planning.MVC.App_Start.SessionProvider.SessionLoadSceanrio";
My problem is when I click the button, the value of the property changes in the controller. But this does not change in my javascript code. Please view the screen capture tool for developers.

Does anyone have a clue to this?
source share