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)- A79% (22)
- B4% (1)
- C11% (3)
- D7% (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.