using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.Controls;
using CMS.SettingsProvider;
public partial class CMSModules_ContactManagement_Filters_ContactFilter : CMSAbstractBaseFilterControl
{
#region "Methods"
///
/// Create WHERE condition.
///
private string CreateWhereCondition()
{
string text = txtContact.Text.Trim();
return "(ContactFirstName LIKE N'%" + SqlHelperClass.GetSafeQueryString(text) + "%' OR ContactMiddleName LIKE N'%" + SqlHelperClass.GetSafeQueryString(text) + "%' OR ContactLastName LIKE N'%" + SqlHelperClass.GetSafeQueryString(text) + "%')";
}
///
/// Button search click.
///
protected void btnSearch_Click(object sender, EventArgs e)
{
WhereCondition = CreateWhereCondition();
RaiseOnFilterChanged();
}
#endregion
}