samedi 17 septembre 2016

how to assign null value to checkBox when unchecked? (C#)

i wanna send null value to database when a checkBox is unChecked. but it is always true or false:

bool? elevator = null; if (!checkBox1.Checked) elevator = null;




Aucun commentaire:

Enregistrer un commentaire