protected void lnkdelete_Click(object sender, EventArgs e) { try { GridViewRow row = ((LinkButton)sender).NamingContainer as GridViewRow; Label lblID = row.FindControl("lblid") as Label; _Objwfm.Delete_MappingMasterUsers(Convert.ToInt32(lblID.Text)); Utility.MessageBox("Record Deleted Successfully."); BindGrid(); } catch (Exception ex) { Utility.CreateErrorLog(ex.Message.ToString(), "Mapping_masterUser.aspx", "lnkdelete_Click", "", "", HttpContext.Current.Session["NTID"].ToString() + " / " + HttpContext.Current.Session["DomainName"].ToString() + " / " + HttpContext.Current.Session["LawsonID"], ex); } finally { } }