Click here to Skip to main content
15,911,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I show tooltip in dynamic dropdownlist? I have code but it is not running in IE.

My code is:

foreach (ListItem _listItem in this.DropDownList1.Items)
{
  _listItem.Attributes.Add("title";, _listItem.Text);
}
Posted
Updated 14-Oct-10 0:46am
v2

1 solution

Below code should work in your solution.

C#
foreach (ListItem _listItem in DropDownList1.Items)
            {
                _listItem.Attributes.Add("title", _listItem.Text);
            }


If this helped you then please Vote and mark it as answer.
 
Share this answer
 
Comments
damodar@gmail.com 14-Oct-10 7:48am    
this code not working in IE6.
NMehta83 14-Oct-10 8:44am    
It is not possible i already test the code here. Please copy your all code snippet here in the question to identify your problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900