ViewState

G

Guest

I saw this code (ASP.NET/VB.NET):
ViewState("strSite") = strSite
ViewState("strCaseMgr") = strCaseMgr

What is this ViewState?
 
K

Kevin Spencer

More specifically, it is serailized data stored in a hidden form field in
the Page. On the client, it is text (compressed data as text) in a hidden
form field. On the server, it is de-serialized back into data, as a
Collection.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.
 
S

Sonu Kapoor

And usually the ViewState is used to store the control state - it is not meant to store other data - although you can do it.

Sonu Kapoor [MVP]
 

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,777
Messages
2,569,604
Members
45,234
Latest member
SkyeWeems

Latest Threads

Top