How do I suppress asp:image AlternateText from html escaping?
Posted
by rsturim
on Stack Overflow
See other posts from Stack Overflow
or by rsturim
Published on 2010-05-03T14:27:17Z
Indexed on
2010/05/03
15:28 UTC
Read the original article
Hit count: 219
ASP.NET
I have an asp:Image -- which I'm assigning "alt" and "tooltip" from the code behind. Unfortunately the value which is coming from the database is getting automatically html escaped -- which I do now want it to -- how do I suppress this?
For example my trademark html entity is doing this -->
® gets changed to --> &#174
-- which is incorrect
Here's my code in the aspx:
<asp:Image runat="server" ID="MainImage" Width="260" />
Do I have any options?
Thanks,
-R
And here's my code behind:
this.MainImage.AlternateText = this.BasePage.SellGroup.DisplayName;
© Stack Overflow or respective owner