验证电子邮件的有效性:
<asp:RegularExpresssoinValidator
id="emailRegexVal"
ControlToValidate="email"
Display="Static"
ValidattionExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$"
Font-Name="Arial" Font-Size="11"
runat="server">
不是有效的邮件地址</asp:RegularExpressionValidator>
id="emailRegexVal"
ControlToValidate="email"
Display="Static"
ValidattionExpression="^[\w-]+@[\w-]+\.(com|net|org|edu|mil)$"
Font-Name="Arial" Font-Size="11"
runat="server">
不是有效的邮件地址</asp:RegularExpressionValidator>