nerdexam
Microsoft

70-519 · Question #269

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…

The correct answer is D. Use a RequiredFieldValidator control and a RegularExpressionValidator 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 CustomValidator control in the Page_Load method.
  • BUse a CustomValidator control in the OnServerValidate method.
  • CUse a RequiredFieldValidator control and a Comparevalfdator control.
  • DUse a RequiredFieldValidator control and a RegularExpressionValidator control.

How the community answered

(52 responses)
  • A
    4% (2)
  • B
    6% (3)
  • C
    13% (7)
  • D
    77% (40)

Community Discussion

No community discussion yet for this question.

Full 70-519 Practice