nerdexam
Microsoft

70-515 · Question #46

70-515 Question #46: Real Exam Question with Answer & Explanation

The correct answer is C. the ValidateRequest attribute. See the full explanation below for the reasoning.

Question

You are testing an existing ASP.NET page. The page includes a text box. You are able to execute malicious JavaScript code by typing it in the text box and submitting. You need to configure the page to prevent JavaScript code from being submitted by the text box. In the @ Page directive, which attribute should you set to true?

Options

  • Athe EnableEventValidation attribute
  • Bthe ResponseEncoding attribute
  • Cthe ValidateRequest attribute
  • Dthe Strict attribute

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice