Women in Technology

Hear us Roar



Article:
  What Are Web Parts?
Subject:   Can't get beyond Browse mode
Date:   2007-06-29 15:12:30
From:   rouxmohammed
Response to: Can't get beyond Browse mode

Seems like you missing "InitComplete" methode in your code behind of DisplayModeMenu.ascx.



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);
}
}
}

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Can't get beyond Browse mode
    2008-06-13 06:22:16  arecibo92 [View]

    I get this same issue, but I have the InitComplete. Is there any other troubleshooting I can do?