Congratulations to all the winners of April 2013, they have won INR 3400 cash and INR 20147 worth prizes !
DotNetFunda.Com Logo
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 31830 |  Welcome, Guest!   Register  Login
 Home > Interview Questions > ASP.NET Interview Questions > What are the ways to manage state of a p ...

What are the ways to manage state of a page?

Interview question and answer by: Rajni.Shekhar | Posted on: 4/10/2012 | Category: ASP.NET Interview questions | Views: 468 | | Points: 40


Answer:

There are mainly two ways to maintain state of a page.
1) client side state management
2) server side state management

Client side state management:

a) View state : Temprorary storage of controls value of a page during postbacks.

b) Control state: Control state property allows to persist property information of a control, it can not be off as view state can be off.

c) Hidden fields: You can also store values in hidden fields, hidden fields are not visible to browser, it is rendered as HTML hidden field.

d) Cookies: Store values in a text file or in memory client browser's session. It stores small amount of data.

e) Query strings: Using query string send values one page to another with URL.

Server side state management

a) Application state: You can also store values in application state, it is accessible from any page in web application, Application state persists data through out the application, you can store application specific information in it. Data stores in application persists for all users.

b) Session state: It is similar to application state but the difference is it store value for user specific or browser specific. You can store any value or data structure in session. Session data lost when user's session expired.

c) Profile properties It stores user specific data, It is similar to session state but profile data persist even user session expired.

Asked In: Many Interviews | Alert Moderator 
Found interesting? Add this to:


>> Write Response - Respond to this post and get points

Even more ... | Submit Interview Questions and win prizes!

More Interview Questions from Rajni.Shekhar

Even more ... | Submit Interview Questions and win prizes!


About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/20/2013 1:17:43 PM