B
Barry
Hi,
I have dropdownlist that I'm trying to bind to an arraylist. The items
in the array get populated correctly, but I can't seem to detect the
SelectedItem.Text property when selecting an item. This property returns
an empty string. Here's the code:
Dim myMaterials As System.Collections.ArrayList =
MyNamespace.DrillDownReport.GetMaterialsList()
With dropMaterial
.Items.Clear()
.DataSource = myMaterials
.DataBind()
End With
I've tried adding
dropMaterials.DataTextField="Material"
to get to the property in the object, but it doesn't help. Besides, the
few examples I've seen don't set this property.
I'm stumped!
I have dropdownlist that I'm trying to bind to an arraylist. The items
in the array get populated correctly, but I can't seem to detect the
SelectedItem.Text property when selecting an item. This property returns
an empty string. Here's the code:
Dim myMaterials As System.Collections.ArrayList =
MyNamespace.DrillDownReport.GetMaterialsList()
With dropMaterial
.Items.Clear()
.DataSource = myMaterials
.DataBind()
End With
I've tried adding
dropMaterials.DataTextField="Material"
to get to the property in the object, but it doesn't help. Besides, the
few examples I've seen don't set this property.
I'm stumped!