Differnce between Control an View State

Answer Posted / dev

View State are valid mainly during postbacks and
information is stored in client only. Viewstate are valid
for serializable data only. Moreover Viewstate are not
secured as data is exposed to client. although we can
configure page directive and machine key to make view state
encrypted. Where in case of session this is user specific
data that is stored in server memory . Session state is
valid for any type of objects. We can take help of session
through different web pages also.

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain security types in asp.net?

772


How we can force all the validation controls to run?

729


Why Unload event of MasterPage Calls first in ASP.net ?

774


Is asp.net easy to learn?

722


What do you mean by serialize?

724


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

878


Briefly describe the role of global.asax?

749


What is web api and why to use it?

757


What is the maximum amount of memory any single process on windows can address?

745


explain code with multi inhertance

1840


How many ways are there to maintain a state in .net? What is view state?

786


List down the sequence of methods called during the page load.

709


COM+ Used ________________ Isolation Level

1709


Where is cookie used in asp.net?

771


Which is faster viewdata or viewbag?

772