Hi!
i have label in modalpopup, now after some opearation i'm showing this popup like,,
popupid.show();
from backend..
mean time i'm displayin some message like
labelId.text="successfully sent to"+name;
i've some value in variable 'name'... How to add some different color only to this name value...
Thanx in advance..
Adding different colors in single label in c#
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

CrishRank #1,487 · 1.1K reputationPosted Jun 19, 2010, 1:13 AM EDT
VikramRank #9,295 · 208 reputationPosted Jun 22, 2010, 9:46 PM EDT
Try this,
labelId.Text = "Successfully sent to" + "<a style='color:Blue'> " + name + "a>";
Hope this will help you.
Regards,
VIkram
Jaish MathewsRank #225 · 11K reputationPosted Jun 22, 2010, 9:54 PM EDT
Any way "Name" need to consider as a separate entity. So use 2 labels and make the label belongs to "Name" as "yellow" or whatever you need.
syed afroz46 reputationPosted Jun 23, 2010, 5:48 AM EDT
thanx once again..
Nivedita Shanker2 reputationPosted Jun 4, 2015, 5:44 AM EDT