private void ViewCateGroup() { ddlAlbumsCate.Items.Clear(); AlbumsCateBSO albumscateBSO = new AlbumsCateBSO(); DataTable table = albumscateBSO.GetAlbumsCate(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlAlbumsCate, table, "~~ Danh mục gốc ~~", "0", "AlbumsCateName", "AlbumsCateID", ""); }
private void GetAlbumsCate() { AlbumsCateBSO albumscateBSO = new AlbumsCateBSO(); DataTable table = albumscateBSO.GetAlbumsCate(); Repeater1.DataSource = table; Repeater1.DataBind(); }
private void ViewAlbumsCate() { AlbumsCateBSO albumcateBSO = new AlbumsCateBSO(); DataTable table = albumcateBSO.GetAlbumsCate(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToGridView(grvAlbumsCate, table); }
private void BindAlbumsCate(int cId) { AlbumsCateBSO albumscateBSO = new AlbumsCateBSO(); DataTable table = albumscateBSO.GetAlbumsCate(); commonBSO commonBSO = new commonBSO(); commonBSO.FillToDropDown(ddlAlbumsCate, table, "", "", "AlbumsCateName", "AlbumsCateID", ""); if (cId != 0) { ddlAlbumsCate.Enabled = false; ddlAlbumsCate.SelectedValue = Convert.ToString(cId); } else ddlAlbumsCate.Enabled = true; }