What is ViewState object ?

  • Thread starter Thread starter ElanKathir
  • Start date Start date
E

ElanKathir

Hi !

What is ViewState object ?
What is use of that?
and
I wrote one Function in Server side and also Client Side. I want to run both
one by one. Like Validation and Submit.


Thanks & Regrads

Elankathir,
ASM Tech,
B'lore,
India.
 
Viewstate is actually hidden fields that are place on each page
so that state of textboxes are maintained even on postbacks
......
if u view souce any of the pages u will see a long encrypted message
in it at the top


bye
amit
 
ViewState is a mechanism for persisting values of certain Server Controls
across PostBacks of a single Page. On the server side, ViewState is a
Collection. On the client side, it is a hidden form field, which contains
compressed text data about what the current values of those Controls are.
When the Page Post Back to itself, the values are compared with the values
posted. It is used both to persist values and in the process of handling
certain client-side events.

--
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

Back
Top