Search code examples
asp.net

what is state management in asp.net


hi all i want to know that we can store information and session information of a user as well as control in three approch

  1. View State
  2. session state
  3. custom cookies

so i want to know that in which circumstances we will use following 1. View State 2. session state 3. custom cookies will any one describe importance and use of each


Solution

  • Check below article will describe each option in details

    ASP.NET State Management Overview

    Client-Based State Management Options

    • View State
    • Control State
    • Hidden Fields
    • Cookies
    • Query Strings

    Server-Based State Management Options

    • Application State
    • Profile Properties
    • Session State