hyperlink image in gridview

G

graphicsxp

Hi,
To have a hyperlink image in my gridview I do this :

<asp:TemplateField>
<ItemTemplate>
<a href="ViewCutting.aspx?CuttinID={0}" ><img
src="App_Themes/close.gif" alt="" style="border:0px" /></a>
</ItemTemplate>
</asp:TemplateField>

This works except that {0} is not doing anything as my hyperlink is not
a server control.
So how can I pass to the URL the value of a field of my gridview for
the row that was clicked ?

Thanks
 

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

Top