How do I suppress asp:image AlternateText from html escaping?
- by rsturim
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;