Monday, March 18, 2013

ASP.NET(DropDownList Tooltip)


//Simple way to add tooltip in dropdown on asp.net



//OnPreRender of your DropDown Call this this method it will create your tooltip automaticly!

        public static void SetToolTiptitle(DropDownList ddl)
        {
            foreach (ListItem li in ddl.Items)
            {
                li.Attributes.Add("title", li.Text);
            }
        }


No comments:

Post a Comment