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
7,104 times
Add to favorites
E-mail Twitter Digg Facebook

Solution explorer

<%@ 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 ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">
        Session State for: <asp:LoginName ID="LoginName1" runat="server" />
        <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 />
                <td valign="top">Session:</td>
                <td><asp:ListBox ID="SessionList" Width="320px" runat="server" /></td>