The case is very simple.Before I delete the record from the gridview ,I want to call the confim windows in order to give the user the opportunity of ok oe cancel.
The first touch with it ,it happents in the following code:
public void grdomas_RowDataBound(Object sender, GridViewRowEventArgs e)
if (e.Row.RowType == DataControlRowType.DataRow)
ImageButton l = (ImageButton)e.Row.FindControl("imgdelete");
The image button is defined in the aspx as:
<asp:ImageButton ID="imgdelete" runat="server" ImageUrl="~/Images/DeleteNew.bmp" Width="20px" Height="20px" ToolTip="Delete" CommandName="Delete" CommandArgument='<%# Container.DataItemIndex + 1 %>'/>
View Complete Post