0% found this document useful (0 votes)
5 views

State Management in ASP.NET

Uploaded by

dhineone
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

State Management in ASP.NET

Uploaded by

dhineone
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

State

Management in
ASP.NET

@Ayyappa Reddy
ASP.NET provides two types of State
Management techniques
What do you mean by Sate Management?

State Management refers to the process of


preserving state and page information across multiple
requests in a web application. Since HTTP is stateless,
the server doesn't remember any information after
responding to a client's request, so State Management
techniques are used to maintain data between
requests.

Server-Side State Management Options:


• Application State: Stores data at the application level,
accessible throughout the application's life, which lasts
from when IIS starts until it stops.
• Session State: Maintains user-specific data for the
duration of a session, which ends when the user logs
out or the session times out.
• Profile Properties: Stores user-specific data that
doesn't expire, even after IIS restarts, using a SQL
database.
• Cache: Temporarily stores frequently used data to
improve performance, but it is unreliable as cached
data can be removed automatically. @Ayyappa Reddy
Client-Side State Management Options:
• View State: Preserves page and control values on the
client side after a postback. It is stored as a hidden field
in the page and can be enabled or disabled.
• Control State: Similar to View State but used for custom
controls and cannot be disabled.
• Hidden Fields: Information is stored in hidden fields on
the page, which are sent to the server with the form
data.
• Cookies: Cookie is a small amount of information that is
stored in client machine.
• QueryString: A QueryString contains the information
that is sent to server with URL.

@Ayyappa Reddy
Find this useful ?

REPOST

Want to Learn more ?


Follow Me

@Ayyappa Reddy

You might also like