Friday, June 13, 2008

How to Tooltip in Asp.NET ListBox

ListBox lstBox = new ListBox();
ListBox lstBox = new ListBox();
ListItem item = new ListItem();
item.Value = "1";
item.Attributes.Add("Title", "Item1 - Test");
item.Text = "Item1";
lstBox.Items.Add(item);

1 comments:

steve said...

this doesn't work in ie6 so you know.