ASP.NET loop through array list
Posted on 2009-05-05
I have a variable of a certain type called Item and one of its properties is called Choices, and that is an object with several properties (like the id, text, dateadded, etc.)
I want to loop through the choices (its an arraylist) in a given item.
Whats the syntax?
Im starting with&
For i = 0 To item.Choices.Count - 1
response.write item.Choices(i).dateadded) this is the line Im having knowing what the syntax is
Can someone clarify the appropriate syntax to loop through an arraylist property of an object in ASP.NET?
Thanks in advance!