Showing posts from July, 2010

Roadblocks utilizing ASP.NET 3.5 and ASP.NET AJAX - part 2

This is a continuation of the previous post. (

ASP.NET Dropdownlist with tooltip

Problem: Although it might occur to everyone that dropdownlist when the text in it is too lengthy, there should have some tooltip to show the text in the dropdownlist like "any" combobox in Windows. But to your surprise, this feature does not come for free on ASP.NET 1.1, 2.0, 3.0, 3.5 or may be even 4.0.


(quote from -

I have search many solutions, some used JQuery, some use CSS and etc. But i do not like to mess around too much with the CSS and Javascript/JQuery for this sort of thing since i am doing MVP+Controller model. A little or non scripting is preferred.
Therefore, it is to add the title attribute to the item

Add a ondatabound="ApplyOptionTitles" event to your DropDownList control.

Then implement in code-behind (C#) as follows:

protected void Ap…