Microsoft
70-519 · Question #158
70-519 Question #158: Real Exam Question with Answer & Explanation
The correct answer is D. Use a Required Field Validator control and a Regular Expression Validator control.. See the full explanation below for the reasoning.
Question
You have an ASP.NET Web Forms application for processing orders. Many users of the application submit their order forms multiple times due to incorrectly formatted credit card information. You need to plan for validation of the length and format of data in the credit card field on the client side prior to processing each transaction. Which approach should you recommend?
Options
- AUse a Custom Validator control in the Page_Load method.
- BUse a Custom Validator control in the On Server Validate method
- CUse a Required Field Validator control and a Compare Validator control.
- DUse a Required Field Validator control and a Regular Expression Validator control.
Community Discussion
No community discussion yet for this question.