<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GetPassword.aspx.cs" Inherits="Book.getpassword" %>

<!DOCTYPE html  >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>取回密码</title>
   
    <meta name="author" content="http://www.dotnetcms.org" />
    <meta name="keywords" content="取回密码" />
     
    <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="Javascript/jquery3.1.min.js"></script>
    
    <script src="bootstrap/js/bootstrap.min.js"></script>
     
    <link href="Style/patch.css" rel="stylesheet" />
</head>


<body>
 
     

    <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
         
 <div class="sitename">
	      <a class="navbar-brand sitename" href="default.aspx">启明星系统-取回密码</a>
    
        </div>
 </nav>
 
         <form id="form1" runat="server">
   
     
   <div style="width:1000px; margin:0 auto;   margin-top:100px"> 

        
       <table class="table" style="width:900px;">
           <tr>
               <th width="100px">
邮箱
               </th>
               <td>
                   <asp:TextBox runat="server" ID="myemail" CssClass="form-control" style="width:350px; border-radius:0px; display:inline-block"  ValidationGroup="g1" ></asp:TextBox> 
 
    <asp:RequiredFieldValidator ControlToValidate="myemail" ValidationGroup="g1"  ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须填写邮件" Display="Dynamic"></asp:RequiredFieldValidator>
       <asp:RegularExpressionValidator ValidationGroup="g1"  ID="RegularExpressionValidator1" runat="server" ErrorMessage="邮件格式不正确"
        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"　 Display="Dynamic"
         ControlToValidate="myemail"></asp:RegularExpressionValidator> 
               </td>
           </tr>

          <tr>
              <th>
验证码
              </th>
              <td>
                  <input name="verifyCode" id="verifyCode" class="form-control" style="width:100px;display:inline-block;  border-radius:0px;" type="text">
                   <input type="button"  id="checkCode"  class="btn"   value=""  onClick="createCode()" />
              </td>
          </tr>

           <tr>
               <td colspan="2">

                   <div style="margin-left:100px">

                 
                   
 <asp:Button runat="server" ID="btn_getpassword" CssClass="btn btn-primary" text="取回密码" 
        OnClientClick=" if(!validatecode()) return false; "
          ValidationGroup="g1"
           onclick="btn_getpassword_Click" />
         
  
          &nbsp;&nbsp;     <a href="login.aspx">登录</a>

                         </div>


               </td>

           </tr>

       </table>
 
 

      
         
 
  
 </div>
           
   <script src="Javascript/yzm.js"></script>
 

    <script>


        window.onload = createCode;

    </script>
  
    </form>
</body>
</html>