Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Session of list already exists.
Add new list in same session.
So seesion consists both list.
Posted
Updated 28-Sep-12 4:08am
v2
Comments
Nueman 28-Sep-12 10:10am    
If you expect others to help you, the first step is framing a question that has enough detail so CP knows what you are trying to do. Please use the "improve question" link to revise your post. Thanks.

1 solution

C#
Session["YourThingy"] = new List<list><whatever>>();</whatever></list>

Whenever you want to add another List to the session, you just have to do
C#
((List<list><whatever>>)Session["YourThingy"]).Add(new List<whatever>());</whatever></whatever></list>
 
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