ASP.NET Arrays

Space in the computer memory to store multiple values of the same type. It is identified by a name and its values by an index which starts at zero. Arrays are defined using the highest index to be contained within the collection.

'Arrays are zero based there for 2 indicates three elements (0, 1, 2)
DIM student(5) as string

'Assign a value to each element using its index
student(0) = "james"
student(1) = "aron"
student(2) = "johanna"
student(3) = "shahid"

Response.Write(student(0))
response.Write("<BR>")
Response.Write(student(1))
response.Write("<BR>")
Response.Write(student(2))
response.Write("<BR>")
Response.Write(student(3))
response.Write("<BR>")
Response.Write(student(4))
response.Write("<BR>")