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

Similar Threads

My code or GoDaddy problem? 1
ViewState and DataTable 1
Viewstate and preserving data on postbacks 1
viewstate 4
Tables and ViewState 1
viewstate big 12
AJAX vs. ViewState? 1
ViewState v Session - Confused 6

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top