如何验证复选框,以便一旦设置为false,就不能再次为true [英] how to validate a checkbox so that once set false cannot be true again

查看:97
本文介绍了如何验证复选框,以便一旦设置为false,就不能再次为true的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我的情况是,如果我在我的数据库中将checkbox的值设置为false,那么它不能再次设置为true。



请帮我处理代码。

Hello there ,i have situation in which if i set the value of checkbox to false once in my database then it cannot be set to true again.

pls help me with the code.

推荐答案





根据我的理解,

1.如果您的数据库值设置为false,则不启用复选框列表(即checkbox.Enabled = false)

2.而不是复选框列表你可以使用单选按钮列表



如果你需要准确的结果,请详细说明你的问题



问候,

--SJ
Hi,

As per my understanding,
1. if your database value was set as false , don''t enable check box list (i.e. checkbox.Enabled = false)
2. instead of check box list you can use radio button list

please elaborate your question if you need accurate results

Regards,
--SJ


这篇关于如何验证复选框,以便一旦设置为false,就不能再次为true的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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