ASP.NET: Validate text box contains integer greater than equal to zero?

Posted by User on Stack Overflow See other posts from Stack Overflow or by User
Published on 2010-03-29T18:07:02Z Indexed on 2010/03/29 18:13 UTC
Read the original article Hit count: 232

If I want to validate that a text box contains an integer greater than or equal to zero. Do I need to use TWO asp:CompareValidator controls: one with a DataTypeCheck operator and one with a GreaterThanEqual operator?

Or is the datatype operator redundant? Can I just use a single validator with the GreaterThanEqual operator (and the type set to Integer)?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about validators