views:

64

answers:

1

I looked into a nice way to display tooltips dynamically and I found OverLibWrapper, which was exactly what I needed.

I have all the tooltip data stored in a custom configuration section, the tooltips are bound to their respective controls during Page_Load.

I did a quick test and worked fine. The problem came up when I realized that OverLibWrapper didn't work on masterpages. Our website has uses quite a few masterpages, so taking them out isn't an option.

I was wondering if there's anything like OverLibWrapper that I could use.

EDIT:

What I'm looking for is a control to display good-looking tooltips on mouseover preferably instantly like overlib (nothing fancy because I'm just displaying raw text) in a dynamic way, because the tooltip property in ASP.NET is not very pretty and takes a while to appear. For example let's say I have a collection of Messages:

class Message
{
    string ctrlid, msgtodisplay;
}

And when the page is loaded:

TooltipManager manager;
foreach(var m in messages)
{
    Tooltip tltp=new Tooltip;
    m.ControlID=m.ctrlid;
    m.Message=m.msgtodisplay;
    manager.AddTooltip(tltp);
}

So basically something that offers the functionality of Tooltip and TooltipManager.

+1  A: 

Take a look at this:

NotesTooltip

I think this will do what you need.

Have you thought about just writing your own? Sometimes I find the things out there by other people are never quite fit for my needs.

jimplode
Thanks for your answer, but I can't get the sample to work, after VS conversion it tells me some files are missing. I tried to make a new project but I get plenty of errors when trying to get the controls to work.
vash47
hhhmmmm.... not converted it myself. Have you considered writing your own??
jimplode
I wouldn't really know how to. I'm kind of new to web programming.
vash47
Give me your specifications, how you want to use it, and I will knock something simple up for you, to get you going.
jimplode
@jimplode I edited my question explaining what I need.
vash47