List Output Help

How would I create a list then on click add data to the list which is then stored into a session variable, then on another page retrieve the variable and output them? Currently I have:

Page Load:

List <myClass> listName=new List<myClass>


listName.add(3); listName.add(4);


Second Page


I need to get the whole list and add output the list so I can output (hopefully) the ‘3’ and ‘4’.


List<myClass> listNames = (List<myClass>)Session[“IDs”];

You can read about it on MSDN: ASP.NET Session State Overview

Need Your Help

Is there a better way to load a dll in C++?

c++ windows dll loadlibrary

Right now I do something like this and it seems messy if I end having a lot of functions I want to reference in my DLL. Is there a better and cleaner way of accessing the functions without having to

Obtain the user logged with JSF with Realm Glassfish

jsf realm jdbcrealm

I'm using forms to do a login with a user with JSF, Glassfish and Realms linked to a database, exist some way to know the id, the username of some information to know the user logged?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.