Tooltip in a webpage

  • Thread starter Thread starter Nat
  • Start date Start date
N

Nat

Hi

I have a webapplication in c# using asp.net.

I have several tooltips wich gets their content from a content.xml
file. My quistion is now: Can't I use AutoPopDelay, InitialDelay etc.
on tooltips in a webapplication?

And if I can what do I have to write?

Nat.
 
You can not achive this by using only C# programming. The functionality you
need is not natively supported in web browsers and that's why no
AutoPopDelay, InitialDelay or other properties exist for web controls.
Tooltips in web applications are implemented using built-in Internet
Explorer functionality which does not allow you to control it any further
than simply set a tooltip message.

However, you can use the ToolTip behavior (search for ToolTip Behavior in
MSDN), which will let you modify the way tooltips are displayed in your
browser. You can use this DHTML behavior for ASP.NET web applications too,
but you may find it cumbersome. Also please note that DHTML behaviors
require Internet Explorer 5.0 or newer and will not work on any browsers
that do not support them (these browsers will simply ignore them and will
not generate an error).

Regards,
 
This looks more link a client-side scripting issue.

Take a look at the Page.RegisterClientScriptBlock method

This will help you get the scripts that you need rendered on the page.

http://www.xpcoder.net
 
Back
Top