ASP.NET控件之RegularExpressValidator控件

作用:对Textbox或者其他输入框进行正则验证;

属性:ControlToValidate:要验证的控件;

     ErrorMessage:错误提示信息;

     ValidationExpression:正则表达式;

根据只需要选择合适的验证:

 

原型:


posted @ 2016-05-20 10:14  小小小同  阅读(215)  评论(0编辑  收藏  举报