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

No Comment

No comments yet

Leave a reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes