Can you diplay image with hyperlink field of gridview?

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

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">

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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response