如何将值绑定到CheckBox [英] how to databse values are bind to the CheckBox

查看:304
本文介绍了如何将值绑定到CheckBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我有sm问题,我想取回数据库中的True或false值,并将其指定(绑定)到特定的复选框,因为它们反映了它的选中或未选中
预先感谢

Hi guys
I have sm problem,i want to get back True or false values in the database and assign(Bind) this to particular check box as they reflect its checked or unchecked
Thanx in advance

推荐答案

将其转换为布尔值,然后再分配给复选框....
Convert it to Boolean before assigning to checkbox....


这有什么大不了的?
为True表示已检查状态;否则为假.默认值为false.
http://msdn.microsoft .com/en-us/library/system.web.ui.webcontrols.checkbox.checked(v = vs.90).aspx [
Whats the big deal in this?
True to indicate a checked state; otherwise, false. The default is false.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.checkbox.checked(v=vs.90).aspx[^]


这篇关于如何将值绑定到CheckBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆