Quote:
How store and retrieve multiple checkbox in single column in database in C#
You have basically 3 solutions:
- use 1 field per value
- use 1 row per value
- combine all checkbox in 1 value
your choice.
Your code:
- do not check if checkbox are months or not.
- only get the name of last checked checkbox.
- is missing the part that save data in database.