I am studying for the 70-562 examination and I came to the web part section.
I was trying to do the exercises presented in the Microsoft's book for this examination, but there is a part where I have to gather all the Display
Modes in a combobox. In my case, I can only see the "Browse" mode, I can't get the others.
I have this code in the code behind to populate the combobox
WebPartManager _manager = WebPartManager.GetCurrentWebPartManager(Page);
foreach (WebPartDisplayMode mode in _manager.SupportedDisplayModes)
ListItem item = new ListItem(mode.Name, mode.Name);
But the only enabled mode is "browse".
What could be the reason for this? How could I fix it?
View Complete Post