Did you forget to use IsPostBack to avoid re-initialization?
OR
If the control is dynamically added control, then add the control on
Page PreInit, such that view state will be populated for the control.
Controls view state will be populated on subsequent TrackViewState
call.
Hth,
Ramu
ma**********@gmail.com wrote:
Why oh why does my <asp:labelrevert to its initial value, having been
changed programmatically, when I click a button in a user control I
have added dynamically to the page? It's EnableViewState is set to
true.
Mark