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 how can you debug your .net application?

537


What is windows active directory authentication?

570


In your ASP.NET 2.0 web application you want to display an image that is selected from a collection of images. What approach will you use to implementing this?

569


Explain the difference between Repeater and Data list control in ASP.NET?

623


What are cookies in asp.net?

578






Define application state variable and session state variable?

558


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

583


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

502


What do you understand by aggregate dependency?

618


Explain the difference between asp.net mvc and asp.net webforms

579


What is different in .net 1.1 and .net 2.0?

578


Explain what benefit does your code receive if you decorate it with attributes demanding specific security permissions?

526


How can we create pie chart in asp.net?

589


Explain exception filters?

593


Explain the different types of directives in .net?

521