protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { try { string id1 = ""; id1 = GridView1.Rows[e.RowIndex].Cells[1].Text; Session["LinkID"] = id1; SSMSBL.delete_usefulLinks(Session["LinkID"].ToString()); bindgrid(); //Utility.MessageBox("Data Deleted"); } catch (Exception ex) { Utility.CreateErrorLog(ex.Message.ToString(), "_Links.aspx", "GridView1_RowDeleting", "", "", HttpContext.Current.Session["NTID"].ToString() + " / " + HttpContext.Current.Session["DomainName"].ToString() + " / " + HttpContext.Current.Session["LawsonID"], ex); } finally { } }