Below I am able to set values and the text:
dropListUserImages.DataValueField = "Value";
dropListUserImages.DataTextField = "Text";
dropListUserImages.Items.Add(new ListItem { Text = srText, Value = srValue});
I also want to set extra attributes such as:
data-imagesrc
data-description
How can I do that?
Use: