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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top