What happens to Accordion clientstate during Sys.Application.Initialize()

Last post 01-30-2009 6:19 PM by mhi27. 0 replies.

Sort Posts:

  • What happens to Accordion clientstate during Sys.Application.Initialize()

    01-30-2009, 6:19 PM
    • Member
      point Member
    • mhi27
    • Member since 01-30-2009, 5:44 PM
    • Posts 1

    Hi,

    I am trying to figure out where the accordion gets its state from when the Sys.Application.Initialize() method is called.

    The reason for this is that I have created an accordion and in one of the panes I have some input boxes, a button and a label to display errors.  Idea is that user inputs some data and clicks the button.  If passes validation, then sent onto another page with Response.redirect, if fails, then page postsback to itself and displays error message.

    Problem occurrs when user inputs bad data (error message displayed), followed by correct data (taken to new page) and then hits the back button on the browser (taken back to accordion page).  What happens is that the error message is being displayed in the accordion even though I removed it (on client side) before I called Response.redirect to get to new page.

     The reason seems to be that when Sys.Application.Initialize() is called the accordion loads up its state from somewhere and I don't know where. In the scenario above I remove the error message from the DOM before I go to new page, then when I go back and Sys.Application.Initialize() is called the accordions state is loaded and it loads the error message.

     If I new where the accordion is saving the state I could update it before I go to new page so it wouldn't be loaded when  Sys.Application.Initialize() is called on the page being loaded after back button pressed.

     If anyone can shed some light on this I would be grateful.

Page 1 of 1 (1 items)