private void LoadPanes()
{
PanesDropDownList.Items.Add(new ListItem(LocalizeString("FullPage"), "dnn_full_page"));
foreach (string pane in PortalSettings.ActiveTab.Panes)
{
Control obj = (Control)DotNetNuke.Common.Globals.FindControlRecursiveDown(Page, pane);
PanesDropDownList.Items.Add(new ListItem(pane, obj.ClientID));
}
if (Settings["DefaultPane"] != null)
{
PanesDropDownList.SelectedValue = Settings["DefaultPane"].ToString();
}
Session["PanesDropDown_" + TabId.ToString()] = PanesDropDownList.Items;
PanesDropDownList.Attributes.Remove("style");
if (Settings["HideDefaultPane"] != null)
{
if (Convert.ToBoolean(Settings["HideDefaultPane"].ToString()))
PanesDropDownList.Attributes.Add("style", "display: none;");
}
}