protected void searchbtn_Click(object sender, EventArgs e)
{
int num1=this.locality.Items.Count;
int num2 = this.classify.Items.Count;
string str1=null;
string str2= null;
for(int i=0;i<num1;i++)
{
if(this.locality.Items[i].Selected==true)
{
str1 +="'"+locality.Items[i].Value.ToString()+"'";
// Response.Write(this.CheckBoxList1.SelectedItem.Value);
}
}
for (int i = 0; i < num2; i++)
{
if (this.classify.Items[i].Selected == true)
{
str2 += "'" + classify.Items[i].Value.ToString() + "'";
// Response.Write(this.CheckBoxList1.SelectedItem.Value);
}
}
if (str1!=null)
{
str1 = str1.Replace("''", "','");
where = where + " and locusarea in (" + str1 + ")";
}
if (str2 != null)
{
str2 = str2.Replace("''", "','");
where = where + " and SecondaryClassification in (" + str2 + ")";
}
bindhot(where);
}
{
int num1=this.locality.Items.Count;
int num2 = this.classify.Items.Count;
string str1=null;
string str2= null;
for(int i=0;i<num1;i++)
{
if(this.locality.Items[i].Selected==true)
{
str1 +="'"+locality.Items[i].Value.ToString()+"'";
// Response.Write(this.CheckBoxList1.SelectedItem.Value);
}
}
for (int i = 0; i < num2; i++)
{
if (this.classify.Items[i].Selected == true)
{
str2 += "'" + classify.Items[i].Value.ToString() + "'";
// Response.Write(this.CheckBoxList1.SelectedItem.Value);
}
}
if (str1!=null)
{
str1 = str1.Replace("''", "','");
where = where + " and locusarea in (" + str1 + ")";
}
if (str2 != null)
{
str2 = str2.Replace("''", "','");
where = where + " and SecondaryClassification in (" + str2 + ")";
}
bindhot(where);
}