Microsoft ASP.Net Active Server Pages Frequently asked questions. ASP and ASP.Net Interview Questions And Answers and FAQ's
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.