On my first page I have two listboxes for Movies and Snacks
They are called lbDisplay for Movies and lbSelected f
On the 2nd page say you have another list box (say ListBox1) to which you want to assign the passed values then use the any one of the foll. 3 methods:
ListBox ListBox1 = null;
ListBox1 = Session["lbSelectedMovies"] as ListBox;
OR
ListBox ListBox1 = new ListBox();
foreach (ListItem Item in ((ListBox)(Session["lbSelectedMovies"])).Items)
{
ListBox1.Items.Add(new ListItem(Item.Text, Item.Value));
}
OR
ListBox1.Items.AddRange((ListItem[])Session["lbSelectedMovies"]);