In the HTML I have four checkboxes, when I submit my form and breakthrough it. I see that the value being captured is the " Spin In Barrett". When I try to reopen that entry, it crashes because its not the same as the selection. Everywhere I have a checkbox in this form is having the same issues.
<div class="form-group row">
<div class="col-md-12 col-md-offset-1" style="text-align: left; vertical-align: bottom; margin-top: 10px;">
<label for="chkPreFin" style="text-decoration: underline; font-size: larger;">Pre-Finishing:</label>
<asp:CheckBoxList ID="chkPrefin" RepeatDirection="Vertical" runat="server" TextAlign="right">
<asp:ListItem Value="Special Handling Instructions"> Special Handling Instructions</asp:ListItem>
<asp:ListItem Value="Spin In Barrett"> Spin In Barrett </asp:ListItem>
<asp:ListItem Value="Pre-Clean In GreyMills"> Pre-Clean In GreyMills</asp:ListItem>
<asp:ListItem Value="Separate In Mckenzi"> Separate In Mckenzi</asp:ListItem>
<asp:ListItem Value="Spin Dry In Holland (No Heat)"> Spin Dry In Holland (No Heat)</asp:ListItem>
</asp:CheckBoxList>
</div>
</div>
Code behind:
For iIndex As Integer = 0 To 4
If chkPrefin.Items(iIndex).Selected Then
Prefin += chkPrefin.Items(iIndex).Value.ToString() + "|"
End If
Next
