开发者

c# - sql print checked boxes

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜