View the ViewState of and ASCX

  • Thread starter Thread starter ronniek
  • Start date Start date
R

ronniek

Hi,

I have a web form which contain several ASCXs inside
I use the ViewState to keep some data between states

one ASCX is a menu bar which provides a menu selection
then the Page itself need to get this value and do something
then another ASCX need to display some information acording to the
selection in the menu's ASCX

I tried to use the ViewState to transfer the data but it seems that
the ViewState of the Page, menu's ASCX, main's ASCX persists a
seperate ViewState

What can I do?
Please give some sample for accessing Page's ViewState from an ASCX
and for accessing ASCX's ViewState from a Page

Thanks,
Ronnie
 
EveryControl has a ViewState property. Just reference the ViewState Property
of the Control. For example, you might query Page.ViewState to see the
ViewState for the Page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
Back
Top