Adhere to ASP.NET - (12)

xiaoxiao2021-03-06  71

Objects and structured data

set

As a collection: < ] {"DOG", "CAT", "Elephant", "Lion", "CAT"}; mylabel.text = Animalarray.getValue (2) .tostring () array.indexof (Animalarray, "CAT") "";}

This program output is obviously: ELEPHANT.

Below is a program that traversed in an array: <% @ page language = "c #"%>