private void executeFilterSearch() { if (SearchResults1.Results != null) return; GroupUsersSearch search = new GroupUsersSearch(); try { search.MinAge = Convert.ToInt32(txtFrom.Text.Trim()); } catch { } try { search.MaxAge = Convert.ToInt32(txtTo.Text.Trim()); } catch { } search.Gender = (User.eGender)Convert.ToInt32(ddFilterByGender.SelectedValue); search.Type = (GroupMember.eType)Convert.ToInt32(ddGroupMemberType.SelectedValue); search.GroupID = GroupID; search.Active = true; search.SortColumn = GroupUsersSearch.eSortColumn.LastOnline; SearchResults1.ShowLastOnline = true; SearchResults1.Results = search.GetResults(); SearchResults1.GroupID = GroupID; }
private void executeSearch() { if (SearchResults1.Results != null) return; GroupUsersSearch search = new GroupUsersSearch(); search.GroupID = GroupID; search.Active = true; search.SortColumn = GroupUsersSearch.eSortColumn.LastOnline; SearchResults1.ShowLastOnline = true; SearchResults1.Results = search.GetResults(); SearchResults1.GroupID = GroupID; }