nerdexam
Microsoft

70-573 · Question #244

You create a custom page layout that contains code-behind. You need to identify whether the page is in Edit mode or in Display mode. What should you use?

The correct answer is A. SPContext.Current.FormContext. MNEMONIC RULE: FormContext Possible values for SPContext.Current.FormContext.FormMode property are Display, Edit, Invalid, and New. SPFormContext.FormMode Property

Developing for User Experience

Question

You create a custom page layout that contains code-behind. You need to identify whether the page is in Edit mode or in Display mode. What should you use?

Options

  • ASPContext.Current.FormContext
  • BSPContext.Current.ListItem.Properties
  • Cthis.Form
  • Dthis.Web.ASPXPageIndexMode

How the community answered

(28 responses)
  • A
    79% (22)
  • B
    4% (1)
  • C
    11% (3)
  • D
    7% (2)

Explanation

MNEMONIC RULE: FormContext Possible values for SPContext.Current.FormContext.FormMode property are Display, Edit, Invalid, and New. SPFormContext.FormMode Property

Topics

#page layout#SPContext#FormContext#Edit mode

Community Discussion

No community discussion yet for this question.

Full 70-573 Practice