Esempio n. 1
0
        private void BindData()
        {
            int ForumID = 0;

            CategoryList.DataSource = YAF.Classes.Data.DB.category_list(PageContext.PageBoardID, null);
            CategoryList.DataBind();

            if (Request.QueryString ["f"] != null)
            {
                ForumID = Convert.ToInt32(Request.QueryString ["f"]);
                AccessList.DataSource = YAF.Classes.Data.DB.forumaccess_list(ForumID);
                AccessList.DataBind();
            }

            // Load forum's combo
            BindParentList();

            // Load forum's themes
            ListItem listheader = new ListItem();

            listheader.Text  = "Choose a theme";
            listheader.Value = "";

            AccessMaskID.DataBind();

            ThemeList.DataSource     = YafStaticData.Themes();
            ThemeList.DataTextField  = "Theme";
            ThemeList.DataValueField = "FileName";
            ThemeList.DataBind();
            ThemeList.Items.Insert(0, listheader);
        }