ArrayList of objects (C#, VB and ASP.NET) | Free code
Here you can download free code (C# and VB) that exemplifies how an ArrayList of objects can be used to send and present data in object-oriented programming.
An ArrayList is a collection of items that are saved temporarily in memory until the "Garbage Collector" release it from memory. An ArrayList has a variable size so that you freely can add and remove items from the list. The variable size of an ArrayList makes it more appropriate to use than a regular array to store a selection of data from a database.
An ArrayList of objects can just as a DataTable or other collections directly be used as a data source to a Repeater, GridView, DataList or a dropdownlist. Data from an ArrayList can be retrieved by a loop through the list where you get the properties from each item in the list.
In this template with free code (C# and VB) for an ArrayList of objects are there examples of how data from a database is added to an ArrayList, how an ArrayList can be used as a data source for a Repeater, and how to loop through an ArrayList to retrieve data from objects.
Remember that you in your web hosting account must have made a setting for the correct version of "ASP.NET" on your website (the version listed in the "Web.config" file). We are using Visual Web Developer 2005 (2010) Express Edition for web programming.
01/01/2015 | Created by All-templates.biz
Download ArrayList of objects (C#, VB and ASP.NET) | Free code »
Tags: web code datalist