I have a user control that I want to reference at postback programatically.
In order to do so, I'll need to persist information in viewstate.
I have 2 options:
Is there any downside to going with option 2 over 1?
You cannot store any 'object' in ViewState, as it is created every time during Load phase, and dies during Unload. Control cannot be serialized. Go with the option 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With