Can you please help me in storing the checkbox list items in session.
I have a checkbox list as follows
asp:CheckBoxList ID="cblScope" runat="server"
onselectedindexchanged="cblScope_SelectedIndexChanged">
asp:ListItem ID="liInScope" runat="server" Value="true">In Scope (Monitored)</asp:ListItem>
<asp:ListItem ID="liOutOfScope" runat="server" Value="true">Out of Scope (Unmonitored)</asp:ListItem>
/asp:CheckBoxList>
I have to store the value of the checkbox in session when they are cheked.
You can add ALL the items (whether checked or not) to session like this:
Or you can just add the checked ones with a bit more code: