ViewState

  • Thread starter Thread starter Dave
  • Start date Start date
D

Dave

Say you have a Web User Control and a parent page that
contains it. Is a ViewState Item created in the parent
page accessible to the user control?

Thanks...
 
In terms of same ViewState (StateBag instance) collection no, because Page
and controls have separate ViewState collections. But of course user control
may have a property that the Page can set and that way pass a value to the
control.
 
Back
Top