Using For Each

Hello how can I write a for each loop which will write every item in the namearraylist?  Heres what I have:

        For Each Name In NameArrayList
            Response.Write(NameArrayList.Item(0).ToString)
        Next


Thanks!
grogo21Asked:
Who is Participating?
 
Luis PérezConnect With a Mentor Software Architect in .NetCommented:
For Each Name As String In NameArrayList
    Response.Write(Name)
Next
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.