Microsoft Exam Questions

which attribute should youset to true?

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 youset to true?

A.
the EnableEventValidation attribute

B.
the ResponseEncoding attribute

C.
the ValidateRequest attribute

D.
the Strict attribute