PrepAway - Latest Free Exam Questions & Answers

Which control should you include in Form1?

You created a custom ASPX page that updates a list. The page is deployed to the _layouts folder.

The page contains the following code segment. (Line numbers are included for reference only.)

01 <form id=”Form1″ runat=”Server”>
02 <asp:Button id=”btnUpdate” runat=”server” Text=”Update”></asp:Button>
03 </form>

A user attempts to update the list by using the page and receives the following error message: “The security validation for this page is invalid”.

You need to prevent the error from occurring.

Which control should you include in Form1?

PrepAway - Latest Free Exam Questions & Answers

A.
EncodedLiteral

B.
FormDigest

C.
InputFormCustomValidator

D.
UIVersionedContent

Explanation:
MNEMONIC RULE: “Digest your security”

FormDigest Class
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.formdigest.aspx


Leave a Reply