protected void btnDeleteLink_Click(Object Sender, ImageClickEventArgs e) { ImageButton oButton = (ImageButton)Sender; oIcon.Delete(Int32.Parse(oButton.CommandArgument)); Response.Redirect(Request.Path); }