developer155
Programmer
How can I capture SelectedIndex of the datagrid when user clicks html image("media/i_edit.gif") that is contained in datagrid? In my datagrid I have:
<asp:TemplateField ItemStyle-CssClass="edit" HeaderStyle-CssClass="edit">
<HeaderTemplate><img src="media/i_add.gif" alt="add" onclick="rowAdd()" /></HeaderTemplate>
<ItemTemplate>
<img alt="view/edit properties" runat="server" id ="Edit" class="edit" src="media/i_edit.gif" />
</ItemTemplate>
</asp:TemplateField>
So I need SelectedIndex for the datagrid to update when they click i_Edit image
thanks
<asp:TemplateField ItemStyle-CssClass="edit" HeaderStyle-CssClass="edit">
<HeaderTemplate><img src="media/i_add.gif" alt="add" onclick="rowAdd()" /></HeaderTemplate>
<ItemTemplate>
<img alt="view/edit properties" runat="server" id ="Edit" class="edit" src="media/i_edit.gif" />
</ItemTemplate>
</asp:TemplateField>
So I need SelectedIndex for the datagrid to update when they click i_Edit image
thanks