<%@ Page Language="C#" %>

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

<script runat="server">

    protected void Page_Load(object sender, EventArgs e)
    {
        
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>PSQL Membership Provider Sample</title>
</head>
<body>
       <form id="form1" runat="server">
    <div>
    <asp:LoginView ID="LoginView1" runat="server">
    <LoggedInTemplate>
      <br />
      You are logged in as
      <asp:LoginName ID="LoginName1" runat="server" />
      .<br />
      <br />
      <a href="ChangePassword.aspx">Change Password</a><br />
	  <a href="RecoverPassword.aspx">Recover Password</a><br />
      <asp:LoginStatus ID="LoginStatus1" runat="server" /><br />    
      Logged in Users: &nbsp;
        <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1">
            <ItemTemplate>
                <small><%# Eval("UserName") %></small>
            </ItemTemplate>
        </asp:DataList>
      <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllUsers" TypeName="System.Web.Security.Membership" OldValuesParameterFormatString="original_{0}"></asp:ObjectDataSource>
              
    </LoggedInTemplate>
    <AnonymousTemplate>
      <strong>You are not logged in. Please Login or create a new user<br />
      </strong>
      <br />
        <asp:Login ID="Login1" runat="server">
        </asp:Login><br />
        <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" ContinueButtonType="Link" ContinueDestinationPageUrl="~/Default.aspx">
            <WizardSteps>
                <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                </asp:CreateUserWizardStep>
                <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                    <ContentTemplate>
                        <table border="0">
                            <tr>
                                <td align="center" colspan="2">
                                    Complete</td>
                            </tr>
                            <tr>
                                <td>
                                    Your account has been successfully created.</td>
                            </tr>
                            <tr>
                                <td align="right" colspan="2">
                                    <asp:Button ID="ContinueButton" runat="server" CausesValidation="False" CommandName="Continue"
                                        Text="Continue" ValidationGroup="CreateUserWizard1" />
                                </td>
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:CompleteWizardStep>
            </WizardSteps>
        </asp:CreateUserWizard>
    </AnonymousTemplate>
    </asp:LoginView>
    </div>
    </form>
</body>
</html>
