Multiple User Controls and ViewState

M

Maury

Hello,
I have a question: what happens if multiple user controls (sometime
of the same type)
write in the same ViewState key ?
Each one erase previous values?
To avoid this have I to prefix the ViewState keu with a
"this.clientID" ???

Thanks
 
K

Kevin Spencer

Every Control has its own ViewState, so you don't need to worry about this.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
B

bruce barker

basically its keyed by the UniqueID. this is why your control must
render with the same name on postback to access its viewstate.

-- bruce (sqlwork.com)
 

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