<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    注册
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>注册帐号</h2>
    <p>
        请软认证填写如下注册信息。 
   <br />
        密码至少需要 <%=Html.Encode(ViewData["PasswordLength"])%> 个以上的字符。
    </p>
    <%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>帐户信息</legend>
                <p>
                    <label for="username">用户名：</label>
                    <%= Html.TextBox("username") %>
                    <%= Html.ValidationMessage("username") %>
                </p>
                <p>
                    <label for="email">邮箱：</label>
                    <%= Html.TextBox("email") %>
                    <%= Html.ValidationMessage("email") %>
                </p>
                <p>
                    <label for="password">密码：</label>
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <label for="confirmPassword">确认密码：</label>
                    <%= Html.Password("confirmPassword") %>
                    <%= Html.ValidationMessage("confirmPassword") %>
                </p>
                <p>
                    <label for="confirmPassword">真实姓名：</label>
                    <%= Html.TextBox("TrueName")%>
                    <%= Html.ValidationMessage("TrueName")%>
                </p>
                <p>
                    <label for="confirmPassword">用户性别：</label>
                    <%= Html.RadioButton("Sex", "男", true)%>男
                    <%= Html.RadioButton("Sex", "女", false)%>女
                    <%= Html.ValidationMessage("Sex")%>
                </p>
                <p>
                    <input type="submit" value=" 注册 " />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
