i have a dropdown list and i am adding some list items dynamically..while adding some items i am adding the "title" attribute also, but when the dropdown list rendered i am not able to set the attribute value. Code is
foreach (var language in languages) {
var newListItem = new ListItem("english","en-US"); newListItem.Attributes.Add("title","/image/en-us.gif");
Add "title" attribute to the dropdown
Hi,
i have a dropdown list and i am adding some list items dynamically..while adding some items i am adding the "title" attribute also, but when the dropdown list rendered i am not able to set the attribute value. Code is
foreach (var language in languages)
{
var newListItem = new ListItem("english","en-US");
newListItem.Attributes.Add("title","/image/en-us.gif");
ddlselect.Items.Add(newListItem);
}
is working on a reply...