Tool tip of each of the items in a CheckBoxList/ListBox/DropDownList controls

Deeraj
Posted by Deeraj under ASP.NET category on | Views : 6838
Have you ever explored internet to find a solution to render tool tip for each of the list items in a checkboxlist /ListBox/DropDownList controls?

Here is a cool tip:

protected void Page_Load(object sender, EventArgs e)
{
foreach (ListItem chk in chkList.Items)
{
chk.Attributes.Add("title", chk.Value);
}
}

Note: ChkList - is a CheckBoxList control.

Thanks,
Dheeraj

Comments or Responses

Login to post response