nerdexam
Microsoft

70-515 · Question #98

You are developing an ASP.NET web page that includes a text box control. The page includes a server-side method named ValidateValue. You need to configure the page so that the text box value is…

The correct answer is B. Use the CustomValidator control. D. Set OnServerValidate on the control to ValidateValue. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET web page that includes a text box control. The page includes a server-side method named ValidateValue. You need to configure the page so that the text box value is validated by using the ValidateValue method. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)

Options

  • AUse the CompareValidator control.
  • BUse the CustomValidator control.
  • CSet ValidationGroup on the control to ValidateValue.
  • DSet OnServerValidate on the control to ValidateValue.

How the community answered

(47 responses)
  • A
    17% (8)
  • B
    72% (34)
  • C
    11% (5)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice