/// <summary> /// Bind data for this control. /// </summary> private void BindData() { // get list of forums and their moderating data using (var ds = LegacyDb.forum_moderatelist(this.PageContext.PageUserID, this.PageContext.PageBoardID)) { this.CategoryList.DataSource = ds.Tables[DbHelpers.GetObjectName("Category")]; } // bind data to controls this.DataBind(); if (this.CategoryList.Items.Count.Equals(0)) { this.InfoPlaceHolder.Visible = true; } }