A
Amr Al Jarhi
I have a webform, with a statically declared usercontrol in it...
the usercontrol is actually a webcontrol ( inherits from class
WebControl)
this control has some child controls created dynamically at the event:
CreateChildControls
obviously this event is fired before the viewstate is loaded, so i
cannot save or load anything from the viewstate.
the question is: how can i use the viewstate from inside the
usercontrol? Or if i cannot, what is the best practice to save and
load volatile data
between postbacks from within the usercontrol?
the usercontrol is actually a webcontrol ( inherits from class
WebControl)
this control has some child controls created dynamically at the event:
CreateChildControls
obviously this event is fired before the viewstate is loaded, so i
cannot save or load anything from the viewstate.
the question is: how can i use the viewstate from inside the
usercontrol? Or if i cannot, what is the best practice to save and
load volatile data
between postbacks from within the usercontrol?