SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a sandboxed visual web part (created in VS2012) when I initially load my web part and its child controls I set myProperty to a value retrieved from the database. When I fill out the relevant form sections and click an update button the postback indicates that the myProperty is null.

How do I persist myProperty between postbacks?

share|improve this question

How are you storing the property? In there are a couple of ways to store information on postbacks, like ViewState or Session.

Please see this thread for more info regarding those StackOverflow

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.