editpsw.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:5k
- <%@ page language="C#" autoeventwireup="true" inherits="editpsw, App_Web_0vnla_mi" theme="Normal" %>
- <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <head runat="server">
- <base target="_self" />
- <title>修改密码</title>
- </head>
- <body style="margin: 0px; font-size:12px; font-family:宋体">
- <form id="form1" runat="server">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
- <tr>
- <td style="vertical-align: top; text-align: center">
- <table style="height:6px;width:394px; text-align:center">
- <tr>
- <td style="width: 390px"></td>
- </tr>
- </table>
- <table style="width:394px; text-align:center">
- <tr>
- <td style="width:6px; height:32px;"></td>
- <td style="width:40px; height:32px;">
- <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/chgpwd.gif" /></td>
- <td style="width: 344px; height:32; text-align: left;">修改密码</td>
- </tr>
- </table>
- <hr style="width:394px; color:Gray; size:1px;"/>
- <table style="width:394px; text-align:center; background-color:#f7f7f7;" cellpadding="1" border="0">
- <tr style=" height:40px;">
- <td style="width: 38px" ></td>
- <td style="width: 95px" >输入原密码</td>
- <td style="width: 289px">
- <asp:TextBox ID="TB_yuanpsw" runat="server" TextMode="Password" Width="140"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TB_yuanpsw"
- ValidationGroup="paswd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
- </tr>
- <tr style="height:40px;" >
- <td style="width: 38px"></td>
- <td style="width: 95px">输入新密码</td>
- <td style="width: 289px">
- <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
- <tr>
- <td>
- <asp:TextBox ID="TB_psw1" runat="server" TextMode="Password" Width="140"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_psw1"
- ValidationGroup="paswd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator><br />
- (a-z,A-Z,0-9,_),长度:6-20<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="TB_psw1" ErrorMessage="不符合规范"
- ValidationGroup="paswd" ValidationExpression="w{6,20}" Display="Dynamic"></asp:RegularExpressionValidator></td>
- </tr>
- <tr>
- <td>
- <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TB_yuanpsw"
- ControlToValidate="TB_psw1" Display="Dynamic" ErrorMessage="安全提示:您输入的新密码还是原始密码,请修改"
- Operator="NotEqual"></asp:CompareValidator></td> </tr>
- </table>
- </td>
- </tr>
- <tr style="height:40px;">
- <td style="width: 38px; height: 40px;" ></td>
- <td style="width: 95px; height: 40px;" >重复新密码</td>
- <td style="width: 289px; height: 40px;">
- <asp:TextBox ID="TB_psw2" runat="server" TextMode="Password" Width="140"></asp:TextBox>
- <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB_psw2"
- ValidationGroup="paswd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator><br />
- <asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="两次新密码不一致" ControlToValidate="TB_psw2"
- ValidationGroup="paswd" ControlToCompare="TB_psw1" Display="Dynamic"></asp:CompareValidator></td>
- </tr>
- </table>
- <hr style="width:394px;color:Gray;size:1px;"/>
- <table cellpadding="1" border="0" style="width:394px; text-align:center;">
- <tr>
- <td align="center" style="height: 26px">
- <asp:ImageButton ID="quding" runat="server" ImageUrl="~/Images/queding.gif" ValidationGroup="paswd" OnClick="quding_Click" />
- <asp:ImageButton ID="quxiao" runat="server" ImageUrl="Images/quxiao.gif" OnClientClick="javascript:if(confirm('确定离开本页面吗?')){window.close();return;}"/></td>
- </tr>
- <tr>
- <td style="text-align:center;"></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- </form>
- </body>
- </html>