views:

34

answers:

1

i want to give tolltip to dropdown list box as like ...

when i just click on the DropDownListBox then it populates the list of items. when i move on the on of item then color of that item changes to blue i want to assign the tooltip for this perticular item.

bcoz my text of listitem is too large which is greater than width of listbox.

is there any event to capture the moved listitem

Please tell me how this can be possible.

A: 

To do this, you can loop through the dropdown list items and add a title attribute to each ListItem (if you are using asp.net webforms):

    For Each listItem As ListItem In DropDownList.Items
        listItem.Attributes.Add("title", listItem.Text)
    Next
scottman666