G
Guest
Hello All,
I am creating a DropDownList of people's names and address. Each item will
be a combination of the individual's name and address. if a person has two
addresses, his/her name will appear twice, once with the first address and
once with the second.
I need to highlight the first occurance of each name. I could bold it,
change the text color to blue or purple (or another color). The point is
that it has to stand out.
Does anyone have a suggestion on how to do this? I have tried using the
following code to hoghlight first items and have had no luck.
If FirstItemFormatted Then
li.Attributes.Add("style", "color:black")
Else
li.Attributes.Add("style", "color:blue")
FirstItemFormatted = True
End If
I would appreciate any help that you could offer.
TIA,
I am creating a DropDownList of people's names and address. Each item will
be a combination of the individual's name and address. if a person has two
addresses, his/her name will appear twice, once with the first address and
once with the second.
I need to highlight the first occurance of each name. I could bold it,
change the text color to blue or purple (or another color). The point is
that it has to stand out.
Does anyone have a suggestion on how to do this? I have tried using the
following code to hoghlight first items and have had no luck.
If FirstItemFormatted Then
li.Attributes.Add("style", "color:black")
Else
li.Attributes.Add("style", "color:blue")
FirstItemFormatted = True
End If
I would appreciate any help that you could offer.
TIA,