Hi All,
I want to display selected value of All asp.net Input controls( Listbox,dropdown,Textbox).
I juz need a dynamic script to fetch the selected value and display it in tooltip.
i have 100s of pages if I place in master page it should work.
ANy idea!!!
if it is listbox all selected values should be in tooltip...
if it is textbox or dropdown enogh to show available value in tooltip
Advanced thanks
How to Show selected values of server control in dynamic Tool tip
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Aug 25, 2011, 3:13 AM EDT
foreach (ListItem _listItem in this.DropDownList1.Items)
{
_listItem.Attributes.Add("title", _listItem.Text);
}
// add a tooltip for the selected item also
DropDownList1.Attributes.Add("onmouseover", "this.title=this.options[this.selectedIndex].title");