Skip to main content
A newer version of this page is available. .

How to create a hyperlink that contains both Binary image and text elements

  • 4 minutes to read

The following example demonstrates how to show an image inside a hyperlink. To show a binary image, convert it in the following manner:

ASPxHyperLink.Text = String.Format("<img src='data:image/png;base64,{0}'/>{1}", Convert.ToBase64String(this.image), this.text)

View Example