editpsw.aspx
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:5k
源码类别:

.net编程

开发平台:

C#

  1. <%@ page language="C#" autoeventwireup="true" inherits="editpsw, App_Web_6jiunhod" theme="Normal" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" >
  4. <head runat="server">
  5. <base target="_self" />
  6.     <title>修改密码</title>      
  7. </head>
  8. <body  style="margin: 0px; font-size:12px; font-family:宋体">
  9.     <form id="form1" runat="server">
  10.         <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
  11.             <tr>
  12.                 <td style="vertical-align: top; text-align: center">
  13.         <table style="height:6px;width:394px; text-align:center">
  14. <tr>
  15. <td style="width: 390px"></td>
  16. </tr>
  17. </table>
  18. <table  style="width:394px; text-align:center">
  19. <tr>
  20. <td style="width:6px; height:32px;"></td>
  21. <td style="width:40px; height:32px;">
  22.                     <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/chgpwd.gif" /></td>
  23. <td style="width: 344px; height:32; text-align: left;">修改密码</td>
  24. </tr>
  25. </table>
  26. <hr  style="width:394px; color:Gray; size:1px;"/>
  27. <table  style="width:394px; text-align:center; background-color:#f7f7f7;" cellpadding="1" border="0">
  28. <tr style=" height:40px;">
  29. <td style="width: 38px" ></td>
  30. <td style="width: 95px" >输入原密码</td>
  31. <td style="width: 289px">
  32.                             <asp:TextBox ID="TB_yuanpsw" runat="server" TextMode="Password" Width="140"></asp:TextBox>
  33.                             <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TB_yuanpsw"
  34.                                 ValidationGroup="paswd" Display="Dynamic" ErrorMessage="*"></asp:RequiredFieldValidator></td>
  35. </tr>
  36. <tr style="height:40px;" >
  37. <td style="width: 38px"></td>
  38. <td style="width: 95px">输入新密码</td>
  39. <td style="width: 289px">
  40.                             <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%">
  41.                                 <tr>
  42.                                     <td>
  43.                             <asp:TextBox ID="TB_psw1" runat="server" TextMode="Password" Width="140"></asp:TextBox>
  44.                                         <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_psw1"
  45.                                           ValidationGroup="paswd" Display="Dynamic"  ErrorMessage="*"></asp:RequiredFieldValidator><br />
  46. (a-z,A-Z,0-9,_),长度:6-20<asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="TB_psw1" ErrorMessage="不符合规范"
  47. ValidationGroup="paswd" ValidationExpression="w{6,20}" Display="Dynamic"></asp:RegularExpressionValidator></td>
  48.                                 </tr>
  49.                                 <tr>
  50.                                     <td>
  51.                             <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TB_yuanpsw"
  52.                                 ControlToValidate="TB_psw1" Display="Dynamic" ErrorMessage="安全提示:您输入的新密码还是原始密码,请修改"
  53.                                 Operator="NotEqual"></asp:CompareValidator></td>  </tr>                             
  54.                             </table>                           
  55.                             </td>
  56. </tr>
  57. <tr style="height:40px;">
  58. <td style="width: 38px; height: 40px;" ></td>
  59. <td style="width: 95px; height: 40px;" >重复新密码</td>
  60. <td style="width: 289px; height: 40px;">
  61.                             <asp:TextBox ID="TB_psw2" runat="server" TextMode="Password" Width="140"></asp:TextBox>
  62.                             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB_psw2"
  63.                               ValidationGroup="paswd" Display="Dynamic"   ErrorMessage="*"></asp:RequiredFieldValidator><br />
  64.                             &nbsp;<asp:CompareValidator id="CompareValidator1" runat="server" ErrorMessage="两次新密码不一致" ControlToValidate="TB_psw2"
  65. ValidationGroup="paswd" ControlToCompare="TB_psw1" Display="Dynamic"></asp:CompareValidator></td>
  66. </tr>
  67. </table>
  68. <hr style="width:394px;color:Gray;size:1px;"/>
  69. <table cellpadding="1" border="0" style="width:394px; text-align:center;">
  70. <tr>
  71. <td align="center" style="height: 26px">
  72.                             <asp:ImageButton ID="quding" runat="server" ImageUrl="~/Images/queding.gif"  ValidationGroup="paswd" OnClick="quding_Click" />
  73.                             &nbsp; &nbsp;<asp:ImageButton ID="quxiao" runat="server" ImageUrl="Images/quxiao.gif"  OnClientClick="javascript:if(confirm('确定离开本页面吗?')){window.close();return;}"/></td>
  74. </tr>
  75. <tr>
  76. <td style="text-align:center;"></td>
  77. </tr>
  78. </table>
  79.                 </td>
  80.             </tr>
  81.         </table>
  82.    
  83.     </form>
  84. </body>
  85. </html>