_ValueChanged event not firing when using SessionPageStatePersister

Last post 10-25-2007 5:28 PM by Cipherlad. 2 replies.

Sort Posts:

  • _ValueChanged event not firing when using SessionPageStatePersister

    10-25-2007, 2:55 PM
    • Member
      2 point Member
    • Cipherlad
    • Member since 11-17-2006, 1:07 PM
    • Posts 7

    Here's an odd problem....

     My UpdatePanel needed to work from a button click outside the panel, so I made the button update a hidden field in the panel that would trigger the refresh of the UpdatePanel (registering the button itself as a trigger wasn't working).

    All this was working well and good until I decided to move the ViewState off the client and use the SessionPageStatePersister to keep the ViewState on the server.  The UpdatePanel still refreshes, but the hidden field _ValueChanged event is not firing anymore when the request is processed by the server.

  • Re: _ValueChanged event not firing when using SessionPageStatePersister

    10-25-2007, 4:17 PM

    It sounds like quite a hack to do it the way you are describing.  You should really focus on getting the button to act as an asynchronous postback trigger for the update panel.  Can you post the source code as it was when you were trying that?

    Okham's Razor -  the simplest answer is usually the best.

    When you ask a question, remember to click "mark as answered" when you get a reply which answers your question.


    My latest ASP.NET AJAX blog entries.
  • Re: _ValueChanged event not firing when using SessionPageStatePersister

    10-25-2007, 5:28 PM
    Answer
    • Member
      2 point Member
    • Cipherlad
    • Member since 11-17-2006, 1:07 PM
    • Posts 7

    Wouldn't help, DisturbedBuddha.  The reason the button wouldn't work is because it existed in a different ContentPlaceHolder in a master page.  So, while being a little bit of a hack, yes, it was the best solution at the time.  I'm actually assigning the button functionality when the page loads, depending on the context it's in.

Page 1 of 1 (3 items)