<%@ Page Language="VB" %>
<script runat="server">
Sub Page_Load(sender As Object, e As EventArgs)
Dim objArrList As ArrayList
Dim i As Integer
objArrList = New ArrayList
objArrList.Add("white")
objArrList.Add("black")
objArrList.Add("red")
objArrList.Add("yellow")
objArrList.Add("green")
Me.lblText.Text = objArrList.Item(2)
End Sub
</script>
<html>
<head>
<title>ThaiCreate.Com ASP.NET - ArrayList</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label id="lblText" runat="server"></asp:Label>
</form>
</body>
</html>