I am trying to show a tooltip within my codebehind. (I am using ASP.NET C#)
What I like to do is to show part of the tooltip in bold as such:
I have the following:
header["Emp"].ToolTip = "Employee<b>Number</b>";
it doesn’t seem to work as the what it shows is:
Employee<b>Number</b>
Thank you in advance
You cannot display bold tooltips in the way in which you are trying to do.
Tooltipproperty renders as atitleattribute on the HTML element, which doesn’t support formatting.If you wish to format your tooltip you should use a javascript tooltip alternative.
Here is a link to a popular tooltip jQuery plugin which I have had good experience with:
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
So that your client-side can access this data, I would add it as a HTML5
data-*attribute, and read from that: