Which of the following will Sam use to accomplish the task?

Sam works as a Software Developer for GenTech Inc. He creates an ASP.NET page, named Page1, for a college Web site. Page1 is used to enroll new applicants to a certification course offered by the college. In order to get admission to the course, an applicant’s age must be between eighteen and twenty-five. The page contains several TextBox controls that are used by applicants to feed their personal details. The data entered by each applicant is then used to check the eligibility of the applicant.

One of the TextBox controls on the page is named txtDateofBirth. Sam wants to verify that the applicants meet the age requirement. He wants to perform validation both on the server-side and on the client-side. In order to validate the age, he adds a CustomValidator control, named CValidator, to the page and sets its ControlToValidate property to txtDateofBirth.

Which of the following will Sam use to accomplish the task? Each correct answer represents a part of the solution. Choose all that apply.
A . ClientValidationFunction event
B . ServerValidate property
C . ServerValidate event
D . ClientValidationFunction property

Answer: C,D

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments