adsense

Tuesday, March 30, 2010

Set tooltip at the controls like Checkbox list or list items ?

These controls doesn't have  a property to directly set a tool tip. In such cases following code can be useful

int i=0;

foreach (ListItem li in checkboxList.Items) {

 li.Attributes.Add("title","Tooltip " + i.ToString());
 i++;

}

Happy Coding ...!!!

No comments:

Post a Comment