Net-informations.com

ASP.NET Array

Arrays are using for store similar data types grouping as a single unit. We can access Array elements by its numeric index. The array indexes start at zero.

The default value of numeric array elements are set to zero, and reference elements are set to null .

VB.Net

C#

The abovecode declare a string array of 7 strings and assign some values to it.

We can access the Arrays elements by providing its numerical index.

VB.Net

C#

Above statement returns the second value from the Array.

The following ASP.NET program fill an arra with seven days in a week and bind it to a ListBox control.

Default.aspx



Click the following links to see full source code

C# Source Code
VB.NET Source Code
Default.aspx.cs
Default.aspx.vb





net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About