Windows Azure ASP.NET Providers Sample

The Windows Azure ASP.NET Providers sample shows how to use tables and blobs in Windows Azure storage to host Membership records, Profile records, Role records and Session State information with custom ASP.NET Providers.

C# (7.1 MB)
 
 
 
 
 
4.1 Star
(10)
7,058 times
Add to favorites
7/29/2011
E-mail Twitter del.icio.us Digg Facebook

Solution explorer

C#
<%@ Page Title="My Session" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="MySession.aspx.cs" Inherits="AspProvidersDemoWebRole.MySession" %>
<asp:Content ID="HeaderContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Session State for: <asp:LoginName ID="LoginName1" runat="server" />
    </h1>
    <div>
        <asp:Label ID="LabelAddNew" runat="server" Text="Add new Session Item"></asp:Label>
        <br />
        <asp:Label ID="LabelNewName" runat="server" Text="Name:"></asp:Label>
        <asp:TextBox ID="TextBoxNewName" runat="server"></asp:TextBox>
        <asp:Label ID="LabelNewValue" runat="server" Text="Value:"></asp:Label>
        <asp:TextBox ID="TextBoxNewValue" runat="server"></asp:TextBox>
        <br />
        <asp:Button ID="ButtonNewSessionItem" runat="server" Text="Add" OnClick="ButtonNewSessionItem_Click" />
        <br />
        <table>
             <tr>
                <td valign="top">Session:</td>
                <td><asp:ListBox ID="SessionList" Width="320px" runat="server" /></td>
            </tr>       
        </table>    
    </div>
</asp:Content>