Erik Lenaerts

Do, or do not. There is no try. - Yoda

ASP.NET Tooltip control

We regularly use an advanced tooltip control for web projects hence this ASP.NET Server control. It is based on the LGPL licensed freeware code of walter zorn.

For your convinience I wrapped it into an ASP.NET server control. Basically you can create DHTML based tooltip controls with lots of features. From an ASP.NET point of view it is very easy to use:

  1. Create a reference to the com.dotnet6.tooltip.controls dll.
  2. Drag one of the controls onto the web page
    1. TooltipImage
    2. TooltipHyperlink
    3. TooltipImageButton
    4. TooltipLabel
  3. For the TooltipImage, you can set the defaultImage to : small_blue like in the figure below

The nice part of this control is that you don't need to bother with the Javascript aspects, all javascript is aranged via the Webresource HTTP handler (learn more about it here).

 

Watch more samples here:http://www.walterzorn.com/tooltip/tooltip_e.htm

Download the source code here (.Net 2.0/C#/VS 2005)

Download the release version assembly

Comments

ErikL said:

Hi all,

I uploaded a new zip bcs the previous one contained a minor bug.

# June 24, 2007 9:16 AM

Erik Lenaerts said:

On a regular basis we needed the thickbox functionalities on our ASP.Net web sites. I'm a fan of

# July 7, 2007 9:44 AM

Yani Dzhurov said:

Hi,

There is a bud in the control library.

When you change the Tooltipwidth to something different than the default value, the tool tip is not rendered correctly.

I worked around this problem by changing the _width property type for each tool tip to int? rather than Unit - unit was transformed to string by postfix with 'px' which looks like to break some javascript functions (like ParseInt?).

However, the auto adjust width functionality is lost...quite pitty.

# January 6, 2008 4:13 AM

Melanie said:

Any idea why this control would stop working when inside an update panel but after a trigger causes an asynchronous postback? Works fine first render but as soon as I do anything to cause a postback in the updatepanel the tooltips stop working.

# July 23, 2008 12:49 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: