| Sign In/My Account | View Cart |
| Article: |
What Are Web Parts? | |
| Subject: | Can't get beyond Browse mode | |
| Date: | 2007-06-04 09:33:20 | |
| From: | PongGod | |
|
When I run the application per the instructions associated with "Figure 5", the only option I have in the Display Mode dropdown is "Browse", not "Design" or "Edit". Is there something that is presumed to be configured a particular way that I am overlooking?
|
||
Showing messages 1 through 2 of 2.
public void InitComplete(object sender, System.EventArgs e)
{
webPartManager = WebPartManager.GetCurrentWebPartManager(Page);
String browseModeName = WebPartManager.BrowseDisplayMode.Name;
foreach (WebPartDisplayMode mode in
webPartManager.SupportedDisplayModes)
{
String modeName = mode.Name;
if (mode.IsEnabled(webPartManager))
{
ListItem listItem = new ListItem(modeName, modeName);
ddlDisplayMode.Items.Add(listItem);
}
}
}