Hi everyone, I have a asp.net listbox (lstAvailable) that is populated via
as ADO DataSet.
[vbcode]
lstAvailable.DataSource = oDs
lstAvailable.DataTextField = oDs.Tables(0).Columns(0).ToString
lstAvailable.DataBind()
[/vbcode]
This works fine, but what I would like to do is for each item in the listbox
associated a new attribute to it. Given that each item in the list box has a
Text attribute and a Value attribute, I would like to add another attribute
called PersonID.
I tried this
lstAvailable.Attributes.Add("ContributorType",
oDs.Tables(0).Columns("PersonID").ToString)
But this adds the attribute to the listbox not to each individual item in
the list..
Thanks for any help in advance
Mark