Click here to Skip to main content
15,892,643 members
Articles / Web Development / HTML

Web Application State

Rate me:
Please Sign up or sign in to vote.
4.87/5 (16 votes)
15 Apr 2008CPOL7 min read 83.4K   1.2K   127  
This article explains how to maintain the web application state.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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>Not Singleton, SessionStorage Using</title>
</head>
<body>
    <form id="form1" runat="server">
      <div>
        <table cellspacing="0"  cellpadding="5"  class="generalTable" >
            <tr>
                <td style="width:30%" >
                    Name
                </td>
                <td style="width:70%" >
                    <asp:TextBox Width="95%" CssClass="input" runat="server" ID="uxDisplayName" />
                </td>
            </tr>
            
            <tr>
                <td>
                    Offline Message
                </td>
                <td>
                    <asp:TextBox Width="95%" CssClass="input" runat="server" ID="uxOfflineMessage" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                   <asp:Button runat="server" CssClass="button" Text="Save" OnClick="uxSave_click"  ID="uxSave"  />
                   <asp:Button ID="resetSession" CssClass="button" OnClick="resetSesssion_Click" runat="server" Text="Reset Session" />
                </td>
            </tr>
          </table>
    </div>  
<br/>
<a href="CompanyView.aspx" >CompanyListing&nbsp;<em>(Not Singleton, DoaStorage Using)</em></a>
<br/>
<a href="SingletonDefault.aspx">ApplicationSettings&nbsp;<em>(Singleton, CookieStorage Using)</em></a>

</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
Web Developer
Belarus Belarus
Andrew Golik is a software professional working in Minsk, Belarus.
He enjoys design infrastructures based on object oriented paradigm. His programming experience includes ASP, ASP.NET, .NET, COM, JAVA, PHP, DHTML, AJAX, blah blah blah....

Andrew Golik's Blog

Comments and Discussions