Nested user controls losing Viewstate
Posted on 2010-09-09
I have a user control (a drop down control) nested within another user control (a gridview) and am using Viewstate to keep track of the gridview SortDirection (ASC or DESC). This works fine, until the selected index is changed in the nested control and then that control needs to read this value from ViewState. At this point however the value is Nothing.
Is there a way of persisting Viewstate across nested user controls?