answersLogoWhite

0

View state applies to a specific instances of a ASP web page. It is normally held in a hidden field in the HTML response to the client (although there are ways to hold it in a database or other storage medium). It holds the properties of controls on your page so that they are retained between postbacks. You do need to be cautious about using view state. If you use it unnecessarily, it can lead to very large HTML files that get transferred to the browser. You can turn off viewstate on an application, page, or individual control level using the EnableViewState property.

Session, or Session State, is an collection that you can assess to save and retrieve objects from one page view to another. Unlike viewstate, session state is held in memory (or a database for large applications), and the variables that you are holding in session are not lost as you move from page to page. In fact, unless/until you remove an object from Session, it will remain accessible until the session is closed.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the Difference between a process view and distributive justice and an end state view?

A process view of distributive justice focuses on the fairness of procedures and decision-making processes in distributing resources or opportunities, while an end state view focuses on the fairness of the ultimate outcome or distribution of resources or opportunities. The process view emphasizes fair procedures regardless of the outcome, whereas the end state view prioritizes fair outcomes regardless of the process.


What is the Difference between session and viewstate in asp?

1) Viewstate is particular to a control/page whereas session is for the whole application. You can access the session data stored in page A in page B but viewstate does not behave so. 2) ViewState is maintained at client side whereas session is maintained at server side 3) Since viewstate is maintained at client, it does not have a concept of expiry but session will expire after the stipulated time 4) You can enable/disable view state for specific controls but you can't do that for session. abhishek patel, mobile number:9558551202


What is the difference between see and view?

In computer language, I perceive the difference between "see" and "view" as the difference between "see" (mere ocular recognition) and "read". For instance, "Click one of the documents you see on the screen to view it".


Difference between isometric view and isometric projection?

I think both are same. There is difference between isometric view and isometric drawing that is of size.


Difference between Reading View and slide show View?

F5


What is the difference between a 'market requirements' and an 'operations resource' view of operations strategy?

Ask Dr Alex bananas and he will answer you


What is the difference between the way that scientist view the world and laypeople view the world?

Scientists see the world as what it is; laypeople view it according to what they believe it is.


What is the difference between Photobucket and Flickr?

They are just different sites where you can view photos.


In 3ds max what is the difference between view port background and image plane setting?

The view port is closer to the eye (closer to the point of view).


What is the difference between a top view and side view?

by seeing an object from top gives us an top view..by seeing an object from side gives us side view..


What is the difference between the shape of a side view of a retangular pyramid and top-down view of a retangular pyramid?

The side view would be a triangle and the top view would be a rectangle


What is the difference between the shape of a side view of a triangular prism and the top view of a triangular prism?

the difference between them is one side of a shape is like a cube and the other is a rectangular prism kind of pyrmid.i hope i helped you on Perspectives 16-11 Practice test.The side view is a rectangle and the top view is a triangle.Enter