saving C# windows form checkbox value of 1 or zero into a sql server or oracle table
Posted on 2009-04-07
I have a basic checkbox in a C# windows form. Lets say the form is called Form1.cs
In my form I brought in the checkbox controls for 3 checkboxes.
I have created a column in my database table for each check box value.
So if the check box is checked the value that will go in the column will be 1
if the value in the checkbox is not checked the value in the column for that checkbox remains 0.
Whats the easiest cleanest way to set up this form?
say i have 3 checkboxes that are called the following
My database is a SQL server database.
The table is called CheckboxDB
The columns in this db are: