string filter = string.Empty;
if (checkboxBalkon.Checked== true)
{
filter = "Balkon LIKE '%" + checkboxBalkon.Checked + "%'"; //???
}
I h开发者_JAVA百科ave search form. The code above is supposed to print down all fields from table that has checkbox checked. I compare it, but i don't know how to print it? I need some bool? How to do it?
I believe the answer you are looking for is something like this:
filter = "Balkon = " + checkboxBalkon.Checked;
精彩评论