protected void btnFind_Click(object sender, EventArgs e) { var findedContactGroups = ActiveRecordBase <ContactGroup> .FindAll( Order.Asc("Name"), Expression.Eq("ContactGroupOwner", _reportsContactGroupOwner), Expression.Eq("Type", ContactGroupType.Reports), Expression.Like("Name", "%" + tbContactFind.Text + "%")); ContactGroups.DataSource = findedContactGroups; ContactGroups.DataTextField = "Name"; ContactGroups.DataValueField = "Id"; ContactGroups.DataBind(); tbContactFind.Visible = false; btnFind.Visible = false; ContactGroups.Visible = true; if (findedContactGroups.Length > 0) { btnSaveContactGropup.Visible = true; } btnCancelContactGroup.Visible = true; CloseTaskService(); }