/// <summary>
    /// 数据绑定
    /// </summary>
    private void DataBing_()
    {
        RepArticlec.DataSource = ArticleColumnManager.GetArticleColumnAll();
        RepArticlec.DataBind();

        DropName.DataSource     = UserManager.GetGeneralUserByRoleId(3);
        DropName.DataTextField  = "RealName";
        DropName.DataValueField = "Id";
        DropName.SelectedIndex  = 0;
        DropName.DataBind();
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 绑定栏目字段
    /// </summary>
    protected void BindDataCBLal()
    {
        DataTable DTArtCol = ArticleColumnManager.GetArticleColumnAll();

        if (DTArtCol.Rows.Count == 0)
        {
            this.LBartCol.Text = "没有可显示的栏目信息";
        }
        this.CBLArticleColumn.DataSource     = DTArtCol;
        this.CBLArticleColumn.DataTextField  = "ArticleColumn_Name";
        this.CBLArticleColumn.DataValueField = "ArticleColumn_ID";
        this.CBLArticleColumn.DataBind();
    }