Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a page where I need to pick a list to store information. This is either a global list for all users, or a personal list for the specific user.

The current practice is to detect edit vs browse with WebPartManager.DisplayMode.Name but this doesn't distinguish between the two types of edit modes.

How do I tell one from the other?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

WebPartManager.DisplayMode gives you the mode of the page: Browse, Edit, ...

WebPartManager.Personalization.Scope gives you the scope of the page: Shared or User

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.