Hi,
I've run in to a problem that I can't seem to find a solution for. We want to set the label for a RadTextBox with HTML code, like this
We use this to give the required star a different color / style, we set it like this from the code behind:
However the problem is the the html code is not rendered as HTML, but as readable text showing us this label in the browser.
So it shows us: Name <span class='required'>*</span>
Instead of: Name *
How can I solve this and make the label write the HTML as I set it?
Thanks,
Danny
I've run in to a problem that I can't seem to find a solution for. We want to set the label for a RadTextBox with HTML code, like this
Name <
span
class
=
'required'
>*</
span
>
We use this to give the required star a different color / style, we set it like this from the code behind:
txtT.Label = Required ?
string
.Format(
"{0} <span class='required'>*</span>"
, value) : value;
However the problem is the the html code is not rendered as HTML, but as readable text showing us this label in the browser.
So it shows us: Name <span class='required'>*</span>
Instead of: Name *
How can I solve this and make the label write the HTML as I set it?
Thanks,
Danny