When Validating Positive Numbers Use Only A RangeValidator

When requiring the user to enter only positive numbers (integer, double, currency) within a specified limit, you do not need to have both a RegularExpressionValidator to check for positive values and a RangeValidator to provide a limit. You can just use the RangeValidator and just set the Minimum property to 0. (Visual Web Developer Express 2008 and .NET 3.5)

Bookmark and Share

About admin

Freelance Web Developer C# .NET, PHP5 Zend Framework, Flex/Actionscript
This entry was posted in Programming and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>