Tuesday, May 13, 2008

What types of validation would you use to verify that a user entered a valid ­customer number?

You would use a RequiredFieldValidator and a RegularExpressionValidator. If you have access to a list of expected customer numbers, you could replace the RegularExpressionValidator with a CustomValidator that checked the list.

No comments: