WEB开发网
开发学院WEB开发ASP ASP.NET升级能力探讨(三) 阅读

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

 2000-12-06 11:17:52 来源:WEB开发网   
核心提示:<!-- 登陆信息 --><table border=0 width=600 ><tr><td colspan=3><table border=0 cellpadding=0 cellspacing=0 width="100%"><t
<!-- 登陆信息 -->
<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=".*[!@#$%^&*+;:].*"
Display="Static"
Font-Name="宋体" Font-Size="12"
Width="100%" runat=server>

  密码必须包含如下字符: (!@#$%^&*+;:)

</asp:RegularExpressionValidator>
</td>
</tr>
<tr> 

Tags:ASP NET 升级

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接