What should you recommend?

You are designing an ASP.NET MVC 2 Web application.
The Web application must meet the following requirements:
- Validate all user input for a class named Customer.
- Perform client-side and server-side validation.
You need to recommend an approach for validating user input.
What should you recommend?
A. Use ASP.NET validation server controls. Call the Html.EnableClientValidation() method.
B. Use only strongly typed HTML helpers. Call the Html.ValidationMessageFor() method for each property in the Customer class.
C. Add DataAnnotations attributes to each property in the Customer class.
Associate all rendered elements with a validation group.
D. Add DataAnnotations attributes to each property in the Customer class.
Call the Html.EnableClientValidation() method.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.