This tutorial will show you how to store data with ArrayList using ASP.NET 2.0 and C#. At first, you need to import the namespace from System.Collections. The System.Collections namespace contains classe ArrayList which Implements the IList interface using an array whose size is dynamically increased as required.

In order to run the example, we will use the btn_get_Click to trigger the task. The code as following:

The front end StoreDataWithArraylistCsharp.aspx page looks something like this:

The flow for the code behind is as follows:

Download Source Files