Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
Example:
If i have 10 check boxes and i want to add those which are checked then store checked check boxes values in single Session.
Posted

You can save those as comma separated string, and later when you get from session , split them and check those checkbox (if needed).
 
Share this answer
 
For a set of booleans, you could use a Flags Enum. Then you effectively store a single integer value in your Session variable. It's also easiest to translate back to the Enum later.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900