zachvaldez
asked on
insert value of checklistbox checked
I have the following variables for the checklistbox..chklstCompli ant
string xa = chklstCompliant.SelectedVa lue;
string xb = chklstCompliant.SelectedVa lue;
string xc = chklstCompliant.SelectedVa lue;
what id like to do if the box is check in one of them it stores the value in a table in database. What is the loop for each checked item
string xa = chklstCompliant.SelectedVa
string xb = chklstCompliant.SelectedVa
string xc = chklstCompliant.SelectedVa
what id like to do if the box is check in one of them it stores the value in a table in database. What is the loop for each checked item
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
explain what this function does?
SaveCheckStatusIfModified( chklstComp liant[eFir st], wasSelected[eFirst]);
SaveCheckStatusIfModified( chklstComp liant[eSec ond], wasSelected[eSecond]);
SaveCheckStatusIfModified( chklstComp liant[eThi rd], wasSelected[eThird]);
SaveCheckStatusIfModified(
SaveCheckStatusIfModified(
SaveCheckStatusIfModified(
ASKER
I take this solution because the other expert didn't reply to my follow up question.
that could be done for example by providing a function that does the job and make 3 calls for your sample:
Open in new window
Sara