You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform.
You create an ASP.NET Web site using .NET Framework 4.0. Only registered users of the company will be able to use the application.
The application holds a page named UserAccount.aspx that enables new users to register them to the registered users‘ list of the company.
The UserAccount page hold numerous TextBox controls that accept users personal details, such as user name, password, home address, zip code, phone number, etc. One of the TextBox controls on the page is named ZipCode in which a user enters a zip code.
You must ensure that when a user submits the UserAccount page, ZipCode must contain ﬁve numeric digits. What will you do to accomplish this?
(Each correct answer represents a part of the solution. Choose two.)
A. Use RangeValidator.
B. Use RegularExpressionValidator
C. Use RequiredValidator
D. Use CompareValidator
E. Use RequiredFieldValidator