Bind array data to asp:ListBox ( : ListBox « Controls « ASP.NET Tutorial

<script runat="server">
   dim strName as String = "A"
   dim myArray() as String = {"Hello", "World"}
   dim myString as String = "AA"

   sub Page_Load(Sender as Object, e as EventArgs)
   end sub

   <form runat="server">
   My Name is <%# strName %>

   <asp:Listbox datasource='<%# myArray %>' runat="server" />
   <asp:Textbox text='<%# myString.ToString %>' runat="server" />

3.16.1.asp:ListBox OnSelectedIndexChanged event and AutoPostBack (
3.16.2.Fill value to asp:ListBox in asp:RadioButtonList selection changed action (
3.16.3.Bind array data to asp:ListBox (
3.16.4.Bind asp:Label with asp:ListBox (
3.16.5.Set array value to asp:ListBox DataSource (
3.16.6.Selection mode of asp:ListBox (C#)
3.16.7.Selection mode of asp:ListBox (VB)
3.16.8.Using the ListBox control (C#)
3.16.9.Using the ListBox control (VB)
3.16.10.Property tester