tijian_tieying/web/Web/Personal/ChangPwd.aspx

55 lines
3.6 KiB
Plaintext
Raw Normal View History

2025-02-20 12:14:39 +08:00
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangPwd.aspx.cs" Inherits="Personal_ChangPwd" %>
<html>
<head>
<title><%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
<link href="../Style/Style.css" type="text/css" rel="STYLESHEET">
</head>
<body>
<form id="form1" runat="server">
<div>
<table id="PrintHide" style="width: 100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">&nbsp;<img src="../images/BanKuaiJianTou.gif" />
<a class="hei" href="../Main/MyDesk.aspx">桌面</a>&nbsp;>>&nbsp;个人设置&nbsp;>>&nbsp;修改密码
</td>
<td align="right" valign="middle" style="border-bottom: #006633 1px dashed; height: 30px;">
<asp:ImageButton ID="ImageButton1" runat="server" ImageAlign="AbsMiddle" ImageUrl="../images/Button/Submit.jpg" OnClick="ImageButton1_Click" />
<img src="../images/Button/JianGe.jpg" />&nbsp;
<img class="HerCss" onclick="javascript:window.history.go(-1)" src="../images/Button/BtnExit.jpg" />&nbsp;</td>
</tr>
<tr>
<td height="3px" colspan="2" style="background-color: #ffffff"></td>
</tr>
</table>
<table style="width: 100%" bgcolor="#999999" border="0" cellpadding="2" cellspacing="1">
<tr>
<td align="right" style="width: 170px; background-color: #D6E2F3; height: 25px;">用户名:</td>
<td style="background-color: #ffffff; height: 25px; padding-left: 5px;">
<asp:Label ID="Label1" runat="server"></asp:Label></td>
</tr>
<tr>
<td align="right" style="width: 170px; height: 25px; background-color: #D6E2F3">用户密码:</td>
<td style="padding-left: 5px; height: 25px; background-color: #ffffff">
<asp:TextBox ID="TextBox1" runat="server" TextMode="Password" Width="250px" Height="20px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
Display="Dynamic" ErrorMessage="*该项不能为空"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator runat="server" ControlToValidate="TextBox1" ValidationExpression="^(?![^0-9]+$)(?![^a-zA-Z]+$)[0-9A-Za-z!@#$%^&*]{8,16}$" Display="Dynamic" ErrorMessage="长度8-16位必须包含数字和字母"></asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td align="right" style="width: 170px; height: 25px; background-color: #D6E2F3">重复密码:</td>
<td style="padding-left: 5px; height: 25px; background-color: #ffffff">
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="250px" Height="20px"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2"
Display="Dynamic" ErrorMessage="*该项不能为空"></asp:RequiredFieldValidator>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox1"
ControlToValidate="TextBox2" ErrorMessage="*前后密码不一致"></asp:CompareValidator></td>
</tr>
</table>
</div>
</form>
</body>
</html>