Add an Image to a HyperlinkField Control

Posted on 2014-08-01
Last Modified: 2014-08-03
I tried this control and it through an error.  Need help.

<asp:HyperLinkField DataTextField="RequestID"
Text="<img src='Images/icon_pdf.gif' alt='SPED Invoice' border='0'/>"
                                                 HeaderText="Generate SPED Invoice" SortExpression="RequestID" ControlStyle-Font-Underline="true"

                                                 <ControlStyle Font-Underline="True"></ControlStyle>
Question by:keithwilson1
    LVL 58

    Accepted Solution

    Why are you adding an image into the title tag - it won't work

    Author Comment

    Yes I know.  I figured out how to do it.

    Featured Post

    Course: CSS Specialist

    We don’t have to sell you on the idea of becoming a developer. If you’re you here, you already know it’s one of the most lucrative (and fastest growing) career tracks out there. It’s CSS that allows you to set yourself apart from other web and mobile developers.

    Join & Write a Comment

    Suggested Solutions

    Introduction (All good things must come to an end ( The original MySQL API ( has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all curre…
    Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    This video teaches users how to migrate an existing Wordpress website to a new domain.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now