Sniper

犯强汉者,虽远必诛!

博客园 首页 新随笔 联系 订阅 管理

验证电子邮件的有效性:

<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>
posted on 2005-08-16 20:38  Sniper  阅读(1055)  评论(1编辑  收藏  举报