示例#1
0
        /// <summary>
        /// 获取数据库列表
        /// </summary>
        /// <returns></returns>
        public void GetAlbumTypeList()
        {
            BLL.AlbumTypesBLL bll_pl = new BLL.AlbumTypesBLL();
            DataSet           ds     = bll_pl.GetAlbumType();

            if (ds.Tables[0].Rows.Count > 0)
            {
                ddl_AlbumTypeList.DataSource     = ds;
                ddl_AlbumTypeList.DataTextField  = "AlbumTypeName";
                ddl_AlbumTypeList.DataValueField = "ID";
                ddl_AlbumTypeList.DataBind();
                ddl_AlbumTypeList.Items.Insert(0, new ListItem("--请选择--", "-1"));
            }
        }