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

Posted by Deeraj under ASP.NET category on | Views : 6658
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.


Comments or Responses

Login to post response