Skip to content

Instantly share code, notes, and snippets.

@irobinson
Created February 2, 2011 02:19
Show Gist options
  • Save irobinson/807131 to your computer and use it in GitHub Desktop.
Save irobinson/807131 to your computer and use it in GitHub Desktop.
Displays a hierarchical (indented) rendering of parent/child page list in DotNetNuke.
<asp:DropDownList runat="server" ID="PagesList" />
this.PagesList.DataSource = TabController.GetPortalTabs(this.PortalId, -1, true, Localization.GetString("DefaultPagesListItem.Text", this.LocalResourceFile), true, false, false, true, true);
this.PagesList.DataValueField = "TabID";
this.PagesList.DataTextField = "IndentedTabName";
this.PagesList.DataBind();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment