private void BindClubCategories() { ListItem item; ClubCategories.DataSource = CategoryRepository.FindByType(Club.CategoryType); ClubCategories.DataBind(); if ((item = ClubCategories.Items.FindByValue(QsCategoryId)) != null) { ClubCategories.ClearSelection(); item.Selected = true; } }
private void BindClubCategories() { ClubCategories.DataSource = CategoryRepository.FindByType(Club.CategoryType); ClubCategories.DataBind(); }