Nested Usercontrols and ViewState
- by Bob Smith
I have a UserControlParent that dynamically loads UserControlChild.
In the UserControlChild, I store a value using the ViewState object by doing a
ViewState["count"] = myCount;
On Postbacks, the ViewState returns a null. Is this because the UserControlChild is being loaded dynamically? If it helps, the UserControlParent is loaded dynamically in the ASPX page as well.