<%@ Page Language="C#" MasterPageFile="~/AccountMasterPage.master" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <asp:Login ID="Login1" runat="server" Height="88px"
            OnLoggedIn="Button1_Click" Width="311px" CreateUserText="创建新用户" CreateUserUrl="~/CreatUser.aspx" PasswordRecoveryText="忘记密码？" PasswordRecoveryUrl="~/FindPassword.aspx" BackColor="white" BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" >
            <HyperLinkStyle HorizontalAlign="Center" />
     <LayoutTemplate>
         <table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse; width: 337px; height: 296px;">
             <tr>
                 <td style="height: 225px; width: 279px;">
                     <table border="0" cellpadding="0" style="width: 233px; height: 62px">
                         <tr>
                             <td align="center" colspan="2" style="font-weight: bold; font-size: 1.2em; color: white;
                                 background-color: #5d7b9d; height: 11px;">
                                 登录</td>
                         </tr>
                         <tr>
                             <td align="right" style="width: 62px; height: 1px">
                                 <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Width="72px" Font-Size="Small" Height="17px">用户名:</asp:Label></td>
                             <td style="width: 198px; height: 1px">
                                 <asp:TextBox ID="UserName" runat="server" Font-Size="Medium" Height="22px" Width="120px"></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                     ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                             </td>
                         </tr>
                         <tr>
                             <td align="right" style="width: 62px; height: 22px;">
                                 <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Width="64px" Font-Size="Small" >密码:</asp:Label></td>
                             <td style="width: 198px; height: 22px;">
                                 <asp:TextBox ID="Password" runat="server" Font-Size="Medium" TextMode="Password" Height="22px" Width="120px"></asp:TextBox>
                                 <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                     ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                             </td>
                         </tr>
                         <tr>
                             <td colspan="2" style="height: 25px">
                                 <asp:CheckBox ID="RememberMe" runat="server" Text="记住我" Width="156px" Height="13px" TextAlign="Left" Font-Size="Small" OnCheckedChanged="RememberMe_CheckedChanged" />
                             </td>
                         </tr>
                         <tr>
                             <td align="center" colspan="2" style="color: red">
                                 <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                             </td>
                         </tr>
                         <tr>
                             <td align="right" colspan="2" style="height: 31px">
                                 <asp:Button ID="LoginButton" runat="server" BackColor="#FFFBFF" BorderColor="#CCCCCC"
                                     BorderStyle="Solid" BorderWidth="1px" CommandName="Login" Font-Names="Verdana"
                                     Font-Size="Small" ForeColor="#284775" Height="20px" Text="登录" ValidationGroup="Login1"
                                     Width="36px" />
                             </td>
                         </tr>
                         <tr>
                             <td align="center" colspan="2">
                                 <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/CreatUser.aspx" Font-Size="Small">创建新用户</asp:HyperLink>
                                 <asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/FindPassword.aspx" Font-Size="Small" Font-Strikeout="False">忘记密码？</asp:HyperLink><br />
                                 &nbsp;</td>
                         </tr>
                     </table>
                 </td>
             </tr>
         </table>
     </LayoutTemplate>
     <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em" ForeColor="White" />
     <InstructionTextStyle Font-Italic="True" ForeColor="Black" />
     <TextBoxStyle Font-Size="0.8em" />
     <LoginButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px"
         Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284775" />
        </asp:Login>
      
</asp:Content>       
        
