maq10
asked on
saving C# windows form checkbox value of 1 or zero into a sql server or oracle table
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
checkbox1
checkbox2
checkbox3
My database is a SQL server database.
The table is called CheckboxDB
The columns in this db are:
checkbox1value
checkbox2value
checkbox2value
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
checkbox1
checkbox2
checkbox3
My database is a SQL server database.
The table is called CheckboxDB
The columns in this db are:
checkbox1value
checkbox2value
checkbox2value
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.