void PopulateContestGroupList() { var list = _contestLibrary.GetContestGroupList(App_Code.SessionInfo.CurrentSite.siteId, ""); _contestGroupList.DataTextField = "title"; _contestGroupList.DataValueField = "contestGroupId"; _contestGroupList.DataSource = list; _contestGroupList.DataBind(); _searchGroupList.DataValueField = "contestGroupId"; _searchGroupList.DataTextField = "title"; _searchGroupList.DataSource = list; _searchGroupList.DataBind(); _searchGroupList.Items.Insert(0, new ListItem("All", "")); _searchGroupList.SelectedIndex = 0; }
void PopulateContestGroups() { _list.DataSource = _contestLib.GetContestGroupList(App_Code.SessionInfo.CurrentSite.siteId, ""); _list.DataBind(); }