N
Nathan Brady
I've developed a control that itself generates child controls dynamically,
and everything works great, including capturing events from child controls,
child controls maintaining their own view state, etc.
My one problem is that any values I add to the ViewState dictionary (I'm
currently adding them in my Page_Load handler) do not survive the postback.
They simply disappear. My control derives from WebControl (which is a
requirement), and everything I can find leads me to believe I should be able
to use ViewState without additional code to save/load it.
As a test, I tried to manually mess with overriding SaveViewState and
LoadViewState. For some reason, the object passed to LoadViewState was always
null.
TIA,
Nathan
and everything works great, including capturing events from child controls,
child controls maintaining their own view state, etc.
My one problem is that any values I add to the ViewState dictionary (I'm
currently adding them in my Page_Load handler) do not survive the postback.
They simply disappear. My control derives from WebControl (which is a
requirement), and everything I can find leads me to believe I should be able
to use ViewState without additional code to save/load it.
As a test, I tried to manually mess with overriding SaveViewState and
LoadViewState. For some reason, the object passed to LoadViewState was always
null.
TIA,
Nathan