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

  • 5 minutes to read

The How to create a hyperlink that contains both image and text elements example demonstrates how to show an image inside a hyperlink. If you want to show a binary image, it is necessary to convert it in the following manner:

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