Tuesday, 17 April 2007

How to determine if a page is in edit mode

SPContext.Current.FormContext.FormMode == SPControlMode.Edit

Alternatively, use an EditModePanel (the PageDisplayMode can be set for specific display modes).

No comments:

Post a comment

Spam comments will be deleted

Note: only a member of this blog may post a comment.