I have 3 tables which contain the information
First table called Grade table which contain
Grade_Level_Pk (int, not null),
Grade_Level_ID (int, null),
Grade_Level (varchar(50) not null),
Grade_Level_Code(varchar(20) null,
The first thing, i have to bind the value from Grade_Level in Grade table to the check box list. (this one its not a problem)
I have another table called ProgramInstance which contain:
ProgramInstanceId(Pk, int, not null)
SchoolId(int, null)
ProgramId(Fk, int null)
InstanceName (nvarchar 255, null)
InstanceStart (DateTime, null)
InstanceEnd (DateTime, null)
SchoolAdmin(int, null)
InstanceNotes (nvarchar(max) null)
SelectAll (bit, null)
ClosureReasonID(int, null)
When i add a program instance, i have checkboxlist which contain the information from Grade_level column from Grade_Level table. I also have a checkbox called select all. Here is the part i having a problem.
First, if the user select select all checkbox, it will select all the value in the checkboxlist and when it click save button the select all value checkbox to the selectAll column in ProgramInstance (bit, null) and it also save to the following table called Program_Instance_Year_Select table which contain information:
RecordId(Pk, int, not null)
ProgramInstance(Fk, int not null)
Grade_Level_Fk(int, not null)
Grade_Level_Select(bit, null)
Grade_Level_Select column will record the selected checkboxlist when you try to add a program instance.
Thank you so much