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