Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

How are you storing the property? In asp.net 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
add comment

Your Answer

 
discard

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.