Hi guys,
I want to do the next.
I got a populated DataGrid with 5 colums: id, name, address, email and download, the download column it's a ASP IMAGENBUTTON.
I would like to add a onClick event to the ASP BUTTON and pass thought it a parameter, but I need to send the current id's column regarding to the previously clicked row.
I wass thinkin in something likes this:
<ASP:TEMPLATECOLUMN>
<headertemplate>Exportar</headertemplate>
<ITEMTEMPLATE>
<ASP:IMAGEBUTTON id="ImageDelete" Runat="server" AlternateText="" ImageUrl="~/img/excel.png" onClick="sendPara(' <%# ( ( DataRowView ) Container.DataItem ) [ "id" ] %> ');"/>
</ASP:IMAGEBUTTON>
</ITEMTEMPLATE>
</ASP:TEMPLATECOLUMN>
but it doesn't work...
Do you have any advice guys?
Thank you in advance...
I want to do the next.
I got a populated DataGrid with 5 colums: id, name, address, email and download, the download column it's a ASP IMAGENBUTTON.
I would like to add a onClick event to the ASP BUTTON and pass thought it a parameter, but I need to send the current id's column regarding to the previously clicked row.
I wass thinkin in something likes this:
<ASP:TEMPLATECOLUMN>
<headertemplate>Exportar</headertemplate>
<ITEMTEMPLATE>
<ASP:IMAGEBUTTON id="ImageDelete" Runat="server" AlternateText="" ImageUrl="~/img/excel.png" onClick="sendPara(' <%# ( ( DataRowView ) Container.DataItem ) [ "id" ] %> ');"/>
</ASP:IMAGEBUTTON>
</ITEMTEMPLATE>
</ASP:TEMPLATECOLUMN>
but it doesn't work...
Do you have any advice guys?
Thank you in advance...