locked
How to persist the state of a ToggleButton RRS feed

  • Question

  • I have created a ToggleButton using feature deployment and it works but after I toggle the button on and then click into a folder in a doc lib it does ot stay on.

    So how do I persist the state between round trips?

    Thanks

    Thursday, October 20, 2011 2:31 PM

Answers

  • Hi JasonT2,

    Without knowing a bit more detail on your feature, it is hard to comment on what happened there.  However, you should be able to keep the ToggleButton setting in places such as viewstate or session state to maintain its toggle status.  You just need to implement the logic in your code to check for toggle state based on where the user is and other conditions for your feature.

    Cheers,

    Jeff- MSFT

    Wednesday, November 9, 2011 5:56 PM

All replies

  • Hi JasonT2,

    Thank you for your post.

    This is a quick note to let you know that we are performing research on this issue.

    Monday, October 24, 2011 10:29 AM
  • Hi JasonT2,

    Without knowing a bit more detail on your feature, it is hard to comment on what happened there.  However, you should be able to keep the ToggleButton setting in places such as viewstate or session state to maintain its toggle status.  You just need to implement the logic in your code to check for toggle state based on where the user is and other conditions for your feature.

    Cheers,

    Jeff- MSFT

    Wednesday, November 9, 2011 5:56 PM