Can you diplay image with hyperlink field of gridview?

 Posted by Bhakti on 12/31/2009 | Category: ASP.NET Interview questions | Views: 9166

Yes, you can.
You just need to set its text property to the desired image.
Code below can make it clear:
<asp:GridView ID="GridView1" runat="server">

<asp:HyperLinkField Text="<img src='1.gif'/>" />

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response