User control and viewstate

R

Roshawn Dawson

Hi,

Is it possible for a web user control to access the viewstate of the
host page? If so, how?

Thanks,
Roshawn
 
T

Teemu Keiski

No, unless page explicitly passes its ViewState collection to the control
and this doesn't happen by default. Usually page could expose domain
specific properties with which the UC can do the job e.g access them, pass
data whatsoever. Optional route is to take it that way that page sets
something to properties of UC whcih handles the storing to its own ViewState
collection.

But start point is that page ahs its own separate ViewState collection as do
have its controls.
 
N

neerajsaluja

Then how can we do this. Actaully I also have the similar requirement in
which I need to object stored in ViewState of the hosting page to the
user control.

How actually can we do this ?
 

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,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top