Hi,
I use following code on PageLoad to supply DataText for a drop down list
box:
Sub Page_Load(sender As Object, e As EventArgs)
If Not IsPostBack Then
Dim values as ArrayList= new ArrayList()
values.Add ("IN")
values.Add ("KS")
values.Add ("MD")
values.Add ("MI")
values.Add ("OR")
values.Add ("TN")
DropDown1.DataSource = values
DropDown1.DataBind
End If
End Sub
How can I change above code to spply both text and value to a listbox?
Thanks,
Ali