Custom Tootip not Shown full data

0

Issue

I am using String builder to create tootlip in C# . but the value of tootlip is not shown full data how to rectify this problem i have mention the code below

StringBuilder sb = new StringBuilder();
var ErrorMessage = " unable to load data please try again " ;
sb.Append(" <i class='fas fa-info-square' data-placement='left' aria-hidden='true' data-toggle='tooltip' title='' data-original-title= " + ErrorMessage + " tooltip></i>");

Output :

tooltip show unable only

Solution

You do not have place your message inside quotas 'message' so probably show only the first text.

Try this

sb.Append(" <i class='fas fa-info-square' data-placement='left' aria-hidden='true' data-toggle='tooltip' title='' data-original-title='" + ErrorMessage + "' tooltip></i>");

Note this part '" + ErrorMessage + "'

Answered By – Aristos

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More