Click here to Skip to main content
15,881,867 members
Articles / Web Development / ASP.NET

State Management in ASP.NET - Introduction

Rate me:
Please Sign up or sign in to vote.
4.69/5 (97 votes)
20 Jan 2014CPOL10 min read 791.3K   3.9K   87  
An overview of state management techniques in ASP.NET.
This article does an overview of state management techniques in ASP.NET. I will be discussing about the various types of state management techniques both client side and server side. This article goes over client side methods like hidden field, view state, cookies, and server side aspects like session management, application state, and session events in ASP.NET.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewState.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /><br />
        <br />
        Value Saved in ViewState : &nbsp;<asp:Label ID="Label1" runat="server" ></asp:Label></div>
    </form>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
He has done Master Degree in Computer Application (MCA) and currently working as a Sr. Software Engineer and having more than 6+ years exp. He has worked with all the .NET framework and good exposure in Web and Windows based development using Microsoft Technology.

Comments and Discussions