i have a templete column in which asp image is placed. i want the following functionality:
When the onclick is fired,
1) first the icon is changed
2) that row in which the icon is placed is deleted on next refresh.
how can i mark the row in onclick event?? so that i can delete it next it. plz help
GridDataItem item = (GridDataItem)e.Item;
ImageButton img = (ImageButton) item["Action2"].FindControl("Action2");
img.ImageUrl = "images/accept.gif" + e.Item.ItemIndex.ToString() ;
Session["RowIndex"] = e.Item.ItemIndex.ToString();
<telerik:GridTemplateColumn UniqueName="Action2" DataField="Action" HeaderText="2">
<asp:ImageButton ID="Action2" runat="server" CommandName="Delete" ImageUrl='<%# Eval("Action") %>'/>
this would work... i have achieved to delete the row on next refresh but
the url of image is not changed immediately.
i want to do both the things...
on click , the url changes immediately either on client side or server side and stores the row index in session.
then on next refresh the row is deleted.
i have achieved to delete the row, but url is not changing??
any clue ?