Many times I came across scenario in which I need to add HTML tag into the text of the ASPxLabel or TextBox etc.
Easiest way to accomplish this is setting EncodeHTML to false - which do not allow editor to keep any of its values that are HTML as HTML and RENDERED as PURE HTML.
e.g. through server side...
aspxlabel.text = "111<br>2222";
aspxlabel.encodehtml = false;
<dxe:ASPxLabel runat="server" ID="ASPxLabel1" ClientInstanceName="lblShortFont" class="largeDonationsStyle" EncodeHtml ="false" Text="bkasd asd <a href='mailto:info@kaliya.com'> info@kaliya.com</a> or call (800) 400-2000" Font-Size="X-Small">
</dxe:ASPxLabel>
No comments:
Post a Comment