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

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top