View the ViewState of and ASCX

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
 
K

Kevin Spencer

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.
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top