public void imgbtnDelete_Click(object s, EventArgs e) { try { BLL_Tec_Inspection objAttch = new BLL_Tec_Inspection(); string[] arg = (((ImageButton)s).CommandArgument.Split(new char[] { ',' })); int res = objAttch.INSP_Delete_Attachments_DL(int.Parse(arg[0]), int.Parse(arg[1]), UDFLib.ConvertToInteger(Session["USERID"])); BindInspAttchment(); } catch { } }