string strCriteria = "";
strCriteria = strCriteria + " WHERE Z='" + DropDownList1.SelectedItem.ToString() + "'";
/* if (RadioButton1.Checked = true)
strCriteria = strCriteria + " AND Date between '" + limdatebox1.Text + "' AND '" + limdatebox2.Text + "'";
else*/
strCriteria = strCriteria + " AND Date<='" + TextBox1.Text + "'";
if (DropDownList3.SelectedItem.Text != " AllMe")
strCriteria = strCriteria + " AND BN='" + DropDownList3.SelectedItem.ToString() + "'";
if (DropDownList2.SelectedItem.Text != " AlBl")
strCriteria = strCriteria + " AND Register='" + DropDownList2.SelectedItem.ToString() + "'";
string qryChechData = "Select * From Database";
qryChechData = qryChechData + " " + strCriteria;