use image in hyperlink field of datagrid?

G

geek-y-guy

I have a datagrid being populated from a datasource. I added a hyperlink
field which points to a page with a detailsview component.

<asp:HyperLinkField

DataNavigateUrlFields="ContactID"

DataNavigateUrlFormatString="contactdetail2.aspx?ContactID={0}"

headerimageURL="~/images/glass.gif"

Text="show" />


I see that I can use an image in the header field for this new column, but
is there any way to use an image for the actual hyperlink itself instead of
the "Text" property? Or what fieldtype can I use so that an image can be
clicked on to pass a value to another page?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top