nerdexam
Microsoft

70-515 · Question #180

You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required"…

The correct answer is B. messages: D. rules. See the full explanation below for the reasoning.

Question

You are developing an ASP.NET Web page that uses jQuery validation. The user should enter a valid email address in a text box that has ID txtEmail. The page must display "E-Mail address required" when the user does not enter an address and "Invalid e-mail address" when the user enters an address that is not formatted properly. You need to ensure that the appropriate error message is displayed when the text box does not contain a valid e-mail address. Which two code segments should you add? (Choose 2)

Options

  • AtxtEmail:
  • Bmessages:
  • CtxtEmail:
  • Drules:

How the community answered

(32 responses)
  • A
    16% (5)
  • B
    78% (25)
  • C
    6% (2)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice