ViewState V/s. Session?

  • Thread starter Thread starter Arpan
  • Start date Start date
A

Arpan

What are the differences between a ViewState variable & Session
variable?

Thanks,

Arpan
 
ViewState keeps its data in the html that is sent back and forth from server
to client.
(Put a large object..into ViewState.. and then ... look at the html source )

Session puts the object/data into server resources/memory.

ViewState is more scalable, but can signficantly increase the bandwidth from
server to client.


I use very small objects/values in Session most of the time.
 

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