首页 > 编程 > .NET > 正文

ASP.NET升级能力探讨(三)

2024-07-10 13:07:54
字体:
来源:转载
供稿:网友

商业源码热门下载www.html.org.cn

<!-- 登陆信息 -->
<table border=0 width=600 >
<tr><td colspan=3>
<table border=0 cellpadding=0 cellspacing=0 width="100%">
<tr><td>
<b>登陆信息</b>
</td></tr>
</table>
</td></tr>
<tr>
<td align=right>

email地址:

</td>
<td>
<asp:textbox id=email width=200px maxlength=60 runat=server />
</td>
<td>
<asp:requiredfieldvalidator id="emailreqval"
controltovalidate="email"
errormessage="email地址"
display="dynamic"
font-name="宋体"
font-size="12"
runat=server>
*
</asp:requiredfieldvalidator>
<asp:customvalidator id="emailregexval" runat="server"
controltovalidate="email"
clientvalidationfunction="clientvalidateemail"

display="static"
font-name="宋体"
font-size="12">

  非法email地址

</asp:customvalidator>
</td>
</tr>

<tr>
<td align=right>

密码:

</td>
<td>
<asp:textbox id=passwd textmode="password" maxlength=20 runat=server/>
</td>
<td>
<asp:requiredfieldvalidator id="passwdreqval"
controltovalidate="passwd"
errormessage="用户密码"
display="dynamic"
font-name="宋体" font-size="12"
runat=server>
*
</asp:requiredfieldvalidator>
<asp:regularexpressionvalidator id="passwdregexbal"
controltovalidate="passwd"
validationexpression=".*[[email protected]#$%^&*+;:].*"
display="static"
font-name="宋体" font-size="12"
width="100%" runat=server>

  密码必须包含如下字符: ([email protected]#$%^&*+;:)

</asp:regularexpressionvalidator>
</td>
</tr>
<tr>  
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表