public static List <PageItem> GetPages(int PortalId)
            {
                List <PageItem> result = new List <PageItem>
                {
                    new PageItem()
                    {
                        Text = "Select Page", Value = 0
                    }
                };

                foreach (TreeView page in BrowseUploadFactory.GetDnnPages(PortalId))
                {
                    result.Add(new PageItem()
                    {
                        Text = page.Text, Value = page.Value
                    });
                    if (page.children != null && page.children.Count > 0)
                    {
                        BindChildPages(result, page.children, "-");
                    }
                }
                return(result);
            }