PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Account/register.aspx

#
ASP.NET | 68 lines | 66 code | 2 blank | 0 comment | 0 complexity | 40231ff6ba821be307184de62335b32c MD5 | raw file
 1<%@ Page Title="Register" Language="C#" MasterPageFile="account.master" AutoEventWireup="true" Inherits="Account.Register" Codebehind="register.aspx.cs" %>
 2
 3<%@ MasterType VirtualPath="~/Account/account.master" %>
 4<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
 5</asp:Content>
 6<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
 7    <asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false" OnCreatedUser="RegisterUser_CreatedUser"
 8        OnCreatingUser="RegisterUser_CreatingUser">
 9        <WizardSteps>
10            <asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
11                <ContentTemplate>
12                    <div class="page-header clearfix">
13                        <h3 id="CreateHdr">
14                            <%=Resources.labels.createAccount %></h3>
15
16                    </div>
17                    <div class="account-content">
18                        <div class="form-group">
19                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName"><%=Resources.labels.userName %>:</asp:Label>
20                            <div class="boxRound">
21                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry form-control"></asp:TextBox>
22                            </div>
23                        </div>
24                        <div class="form-group">
25                            <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email"><%=Resources.labels.email %>:</asp:Label>
26                            <div class="boxRound">
27                                <asp:TextBox ID="Email" runat="server" CssClass="textEntry form-control"></asp:TextBox>
28                            </div>
29                        </div>
30                        <div class="form-group">
31                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password"><%=String.Format(Resources.labels.passwordMinimumCharacters, Membership.MinRequiredPasswordLength) %></asp:Label>
32                            <div class="boxRound">
33                                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry form-control" TextMode="Password"></asp:TextBox>
34                            </div>
35                        </div>
36                        <div class="form-group">
37                            <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword"><%=Resources.labels.confirmPassword %>:</asp:Label>
38                            <div class="boxRound">
39                                <asp:TextBox ID="ConfirmPassword" runat="server" CssClass="passwordEntry form-control" TextMode="Password"></asp:TextBox>
40                            </div>
41                        </div>
42                        <div class="form-group">
43                            <blog:RecaptchaControl ID="recaptcha" runat="server" />
44                        </div>
45                    </div>
46                    <hr />
47                    <div class="btn-wrapper text-center">
48                        <asp:Button ID="CreateUserButton" CssClass="btn btn-primary btn-block btn-lg" runat="server" CommandName="MoveNext" Text="<%$Resources:labels,createUser %>" OnClientClick="return ValidateNewUser()" />
49                        <hr />
50                        <p>
51                            <span>
52                                <%=Resources.labels.alreadyHaveAccount %>
53                                <a id="HeadLoginStatus" runat="server"><%=Resources.labels.loginNow %></a></span>
54                        </p>
55                    </div>
56                </ContentTemplate>
57                <CustomNavigationTemplate>
58                </CustomNavigationTemplate>
59            </asp:CreateUserWizardStep>
60        </WizardSteps>
61    </asp:CreateUserWizard>
62    <asp:HiddenField ID="hdnPassLength" runat="server" />
63    <script type="text/javascript">
64        $(document).ready(function () {
65            $("input[name$='UserName']").focus();
66        });
67    </script>
68</asp:Content>