Hello Community,
i have a question about the custom attributes.
For example, I want to bind an Item with 3 attributes. A Text, Value and a Custom Attribute.
The Data come from a Datatable. I need to do this Server Side.
The custom attribute don't need to be visible.
It's just a second ID.
I tried this:
Define
Dim dtBank As DataTable = Allgemeines.GETBank()
If dtBank.Rows.Count > 0 Then
rcbBankID.DataSource = dtBank
rcbBankID.DataBind()
'Maybe this is totaly wrong
For Each drBank As DataRow In dtBank.Rows
rcbBankID1.Attributes.Add("BLZ", drBank("BLZ"))
Next
End If
Use
Dim strTest As String = rcbBankID.SelectedItem.Attributes("BLZ").ToString
I hope you understand me.
Thank you for your Help
Daniel