string qry = @"select * 
               from tblProduct p 
               inner join tblColor c on c.colorID = p.ColorID
               inner join tblBrand b on b.brandID = p.brandID 
               where pName like'%" + txtSearch.Text + "%' and pPrice " + "between " + Convert.ToDouble(lblMin.Text) + " and " +" " + Convert.ToDouble(lblMax.Text) + "";
DataTable dt = mainClass.GetData(qry);
public static DataTable GetData(string qry)
{
    SqlCommand cmd = new SqlCommand(qry, con);
    DataTable dt = new DataTable();
    SqlDataAdapter da = new SqlDataAdapter(cmd);
            
    da.Fill(dt);
    return dt;
}
note// lblmin =0 and lblmax=7777
I will try in SQL Server not a problem but when I write query in C#, I get an error
 
     
    