aspdotnet about password and repassword

原创 2005年05月27日 12:16:00

<!--source file=Default.aspx-->
<html>
<head>
<title>Default.aspx</title>
</head>
<body>
<center>
<h3><font face="Verdana">Text Control</font></h3>
</center>
<form id="Form1" method=post runat=server>
<hr width=600 size=1 noshade>
<br><br>
<!--title-->
    <asp:ValidationSummary ID="valSum" runat="server"
        HeaderText="please follow up write:"
        DisplayMode="SingleParagraph"
       font-name="Verdana"
        Font-Size="12"
        />

<table border=0 width=600>
    <tr>
      <td align=right>
        <font face=Arial size=2>E-mail:</font>
      </td>
      <td>
<!--input email address-->      
  <asp:TextBox id=email width=200px maxlength=60 runat=server />
      </td>
      <td>
<!--check email!->不能为空--> 
        <asp:RequiredFieldValidator id="emailReqVal"
            ControlToValidate="email"
            ErrorMessage="Email. "
            Display="Dynamic"
            Font-Name="Verdana" Font-Size="12"
            runat=server>
            *
        </asp:RequiredFieldValidator>
<!--验证邮件的有效性!->必须包含有效字符--> 
        <asp:RegularExpressionValidator id="emailRegexVal"
            ControlToValidate="email"
            Display="Static"
            ValidationExpression="^[/w-]+@[/w-]+/.(com|net|org|edu|mil)$"
            Font-Name="Arial" Font-Size="11"
            runat=server>
            不是有效邮件地址
        </asp:RegularExpressionValidator>
      </td>
    </tr>

    <tr>
      <td align=right>
        <font face=Arial size=2>密码:</font>
      </td>
      <td>
    <!--输入密码--> 
        <asp:TextBox id=passwd TextMode="Password" maxlength=20 runat=server/>
      </td>
      <td>
    <!--输入密码->密码不能为空--> 
          <asp:RequiredFieldValidator id="passwdReqVal"
              ControlToValidate="passwd"
              ErrorMessage="Password. "
              Display="Dynamic"
              Font-Name="Verdana" Font-Size="12"
              runat=server>
              *
          </asp:RequiredFieldValidator>
    <!--输入密码->包含其中有效字符--> 
          <asp:RegularExpressionValidator id="passwdRegexBal"
              ControlToValidate="passwd"
              ValidationExpression=".*[!@#$%^&*+;:].*"
              Display="Static"
              Font-Name="Arial" Font-Size="11"
              Width="100%" runat=server>
              密码必须包含 (!@#$%^&amp;*+;:)
          </asp:RegularExpressionValidator>
      </td>
    </tr>
    <tr>
      <td align=right>
        <font face=Arial size=2>再次输入密码:</font>
      </td>
      <td>
    <!--输入确认密码->--> 
        <asp:TextBox id=passwd2 TextMode="Password" maxlength=20 runat=server/>
</td>
      <td>
    <!--输入确认密码->不能为空--> 
        <asp:RequiredFieldValidator id="passwd2ReqVal"
            ControlToValidate="passwd2"
            ErrorMessage="Re-enter Password. "
            Display="Dynamic"
            Font-Name="Verdana" Font-Size="12"
            runat=server>
            *
        </asp:RequiredFieldValidator>
    <!--输入确认密码->两个密码是否相等--> 
        <asp:CompareValidator id="CompareValidator1"
            ControlToValidate="passwd2" ControlToCompare="passwd"
            Display="Static"
            Font-Name="Arial" Font-Size="11"
            runat=server>
            密码不相等
        </asp:CompareValidator>
      </td>
    </tr>
  </table>
       <input id="Submit1" runat="server" type=submit value="提交">
    <hr width=600 size=1 noshade>

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

Layout Concern about Trace, Ground and Via

  • 2015年04月02日 20:57
  • 966KB
  • 下载

蓝桥杯-Tricky and Clever Password(java)

算法训练 Tricky and Clever Password 时间限制:2.0s 内存限制:256.0MB 问题描述 ...

About SFB and FBC of step7

  • 2010年01月15日 13:59
  • 2KB
  • 下载

SecureCRT通过SSH服务登录ubuntu出错:Password authentication failed, Please verify that the username and passw

1. 首先确保ubuntu安装ssh服务。通过ps -e | grep ssh查看,如果 sshd表示ssh已成功启动。 2. 通过SecureCRT登录ssh服务 提示错误:Passwo...

Codeforces Round #288 (Div. 2)---D. Tanya and Password

D. Tanya and Password time limit per test 2 seconds memory limit per test 256 megabytes i...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:aspdotnet about password and repassword
举报原因:
原因补充:

(最多只允许输入30个字)