开发者

c# - sql print checked boxes

开发者 https://www.devze.com 2023-03-10 07:47 出处:网络
string filter = string.Empty; if (checkboxBalkon.Checked== true) { filter = \"Balkon LIKE \'%\" + checkboxBalkon.Checked + \"%\'\"; //???
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

精彩评论

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