2012年10月31日
摘要: CustomValidator控件也称为自定义验证控件,通过RequiredFieldValidator控件结合CompareValidator控件、RangeValidator控件或RegularExpressionValidator控件之中的一个或多个就能满足asp.net开发中的90%以上的验证要求,但是有一些特殊的验证用上述控件组合无法达到验证要求,比如要求用户填写一个奇数。为了满足一些特殊的验证要求,在asp.net中还有一个CustomValidator控件,在这个控件中可以自己写验证规则。 CustomValidator类是BaseValidator抽象类,所以Custom... 阅读全文
posted @ 2012-10-31 18:39 非零 阅读(13253) 评论(0) 推荐(0)