private void PopulateShowGridView(string club_ID) { Guid Club_ID = new Guid(club_ID); Shows show = new Shows(_connString); List <Shows> tblShows = show.GetShowsByClub_ID(Club_ID); ShowGridView.DataSource = tblShows; ShowGridView.DataBind(); }
private void PopulateShows(Guid club_ID) { cboShows.Items.Clear(); Shows shows = new Shows(Utils.ConnectionString()); List <Shows> showList = shows.GetShowsByClub_ID(club_ID); foreach (Shows show in showList) { ComboBoxItem item = new ComboBoxItem(); item.Text = show.Show_Name; item.Value = show.Show_ID; cboShows.Items.Add(item); } }