📄 login.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/TeachHelper/MasterPage.master" CodeFile="Login.aspx.cs"
Inherits="Login_aspx" Title="登录" Culture="auto" UICulture="auto" %>
<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" runat="Server">
<div id="adminedit">
<fieldset>
<!-- add H2 here and hide it with css since you can not put h2 inside a legend tag -->
<h2 class="none">
用户登录</h2>
<legend>用户登录</legend>
<asp:Login ID="Login1" runat="server" LoginButtonText=" 登 录 " PasswordLabelText="密码:" PasswordRecoveryText="忘记密码?" PasswordRecoveryUrl="~/TeachHelper/Password_Recovery.aspx" RememberMeText="记住密码" TitleText="" UserNameLabelText="用户名:" FailureText="登录失败,请重试。" PasswordRequiredErrorMessage="密码不能为空" UserNameRequiredErrorMessage="用户名不能为空">
<LoginButtonStyle CssClass="submit" />
<LayoutTemplate>
<table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse">
<tr>
<td>
<table border="0" cellpadding="0">
<tr>
<td align="right">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label></td>
<td>
<asp:TextBox ID="UserName" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
ErrorMessage="用户名不能为空" ToolTip="用户名不能为空" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td align="right">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label></td>
<td>
<asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
ErrorMessage="密码不能为空" ToolTip="密码不能为空" ValidationGroup="Login1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2">
<asp:CheckBox ID="RememberMe" runat="server" Text="记住密码" />
</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">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="submit"
Text=" 登 录 " ValidationGroup="Login1" />
</td>
</tr>
<tr>
<td colspan="2">
<asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/TeachHelper/Password_Recovery.aspx">忘记密码?</asp:HyperLink>
</td>
</tr>
</table>
</td>
</tr>
</table>
</LayoutTemplate>
</asp:Login>
</fieldset>
</div>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -