コード例 #1
0
        /// <summary>
        /// The forums category_ on selected index changed.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        protected void ForumsCategory_OnSelectedIndexChanged([NotNull] object sender, [NotNull] EventArgs e)
        {
            DataTable forums_category = LegacyDb.forum_listall_fromCat(
                this.PageContext.PageBoardID, this.ForumsCategory.SelectedValue.ToType <int>());

            this.ForumsParent.DataSource = forums_category;
            this.ForumsParent.DataBind();
        }
コード例 #2
0
        /// <summary>
        /// The topics category_ on selected index changed.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        protected void TopicsCategory_OnSelectedIndexChanged([NotNull] object sender, [NotNull] EventArgs e)
        {
            DataTable topic_forums = LegacyDb.forum_listall_fromCat(
                this.PageContext.PageBoardID, this.TopicsCategory.SelectedValue.ToType <int>());

            this.TopicsForum.DataSource = topic_forums;
            this.TopicsForum.DataBind();
        }
コード例 #3
0
ファイル: editforum.ascx.cs プロジェクト: ggagnaux/YAFNET
 /// <summary>
 /// Binds the parent list.
 /// </summary>
 private void BindParentList()
 {
     this.ParentList.DataSource = LegacyDb.forum_listall_fromCat(
         this.PageContext.PageBoardID, this.CategoryList.SelectedValue);
     this.ParentList.DataValueField = "ForumID";
     this.ParentList.DataTextField  = "Title";
     this.ParentList.DataBind();
 }