The ArrayList can be resized to a large extent during runtime so that addition and deletion of items within it can be accommodated. An array list can be created in ASP.NET page with the application of a particular type of syntax. Data binding to arraylist is a very common process that is carried as binding to some other data source. This process will move on with the setting up of datasource property to the ArrayList id which would be followed by that of the issuing of databind() method.
ArrayList myList = new ArrayList();
myList.Add ("DotNetSpider"); // Add a string.
myList.Add(1032); // Add an integer
myList.Add( DateTime.Now ); // Add current time.
grdMedication1.DataSource= myList;
grdMedication1.DataBind();
ArrayList myList = new ArrayList();
myList.Add ("DotNetSpider"); // Add a string.
myList.Add(1032); // Add an integer
myList.Add( DateTime.Now ); // Add current time.
grdMedication1.DataSource= myList;
grdMedication1.DataBind();
Aspnet Discussion
- - Any idea??
- - How to Encode-Decode URL
- - Change IE settings using
- - Excel problem
- - Example of Server.Transfe





