tijian_tieying/web/Web/Personal/ChangPwd2.aspx
2025-02-20 12:14:39 +08:00

131 lines
4.9 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChangPwd2.aspx.cs" Inherits="Personal_ChangPwd2" %>
<html>
<head>
<title><%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
<link href="../Style/Style.css" type="text/css" rel="STYLESHEET">
<style type="text/css">
/* Basic Grey */
.basic-grey {
margin-left: auto;
margin-right: auto;
max-width: 500px;
background: #F7F7F7;
padding: 25px 15px 25px 10px;
font: 12px Georgia, "Times New Roman", Times, serif;
color: #888;
text-shadow: 1px 1px 1px #FFF;
border: 1px solid #E4E4E4;
}
.basic-grey h1 {
font-size: 25px;
padding: 0px 0px 10px 40px;
display: block;
border-bottom: 1px solid #E4E4E4;
margin: -10px -15px 30px -10px;
color: #888;
}
.basic-grey h1 > span {
display: block;
font-size: 11px;
}
.basic-grey div > span {
width: 10%;
text-align: right;
padding-right: 10px;
margin-top: 10px;
color: #888;
}
.basic-grey input[type="text"], .basic-grey input[type="password"], .basic-grey textarea, .basic-grey select {
border: 1px solid #DADADA;
color: #888;
height: 30px;
margin-bottom: 16px;
margin-right: 6px;
margin-top: 2px;
outline: 0 none;
padding: 3px 3px 3px 5px;
width: 77%;
font-size: 12px;
line-height: 15px;
box-shadow: inset 0px 1px 4px #ECECEC;
-moz-box-shadow: inset 0px 1px 4px #ECECEC;
-webkit-box-shadow: inset 0px 1px 4px #ECECEC;
}
.basic-grey textarea {
padding: 5px 3px 3px 5px;
}
.basic-grey select {
background: #FFF url('down-arrow.png') no-repeat right;
-webkit-appearance: none;
-moz-appearance: none;
text-indent: 0.01px;
text-overflow: '';
width: 70%;
height: 35px;
line-height: 25px;
}
.basic-grey textarea {
height: 100px;
}
.basic-grey .button {
background: #E27575;
border: none;
padding: 10px 25px 10px 25px;
color: #FFF;
box-shadow: 1px 1px 5px #B6B6B6;
border-radius: 3px;
text-shadow: 1px 1px 1px #9E3F3F;
cursor: pointer;
}
.basic-grey .button:hover {
background: #CF7A7A
}
.btn {
color:#fff;
background-color:#5cb85c;
padding:6px 12px;
font-weight:600;
border:1px solid transparent;
border-radius:4px;
}
</style>
</head>
<body>
<form id="form1" runat="server" class="basic-grey">
<h1><asp:Label ID="lableType" runat="server" style="font-size:20px"></asp:Label>
<span>长度8-16位必须包含数字和字母</span>
</h1>
<div>
<span>用&nbsp;&nbsp;户&nbsp;&nbsp;名 :</span>
<asp:TextBox ID="Label1" runat="server" ReadOnly="true"></asp:TextBox>
</div>
<div>
<span>用户密码 :</span>
<asp:TextBox ID="TextBox1" runat="server" TextMode="Password"></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>
</div>
<div>
<span>重复密码 :</span>
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></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>
</div>
<div style="text-align:center">
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" CssClass="btn" Text="保存" />
</div>
</form>
</body>
</html>