protected void tblMyProjects_OnRowDeleting(object sender, GridViewDeleteEventArgs e) { try { var del_id = tblMyProjects.DataKeys[e.RowIndex].Values[0].ToString(); var credentials = new NetworkCredential(ConfigurationManager.AppSettings["W_USER"], ConfigurationManager.AppSettings["W_PWD"], ConfigurationManager.AppSettings["DOMAIN"]); Portals sup = new Portals(); sup.Credentials = credentials; sup.PreAuthenticate = true; sup.FnDeleteProject(del_id); LoadMyProjects(); KCDFAlert.ShowAlert("Project Deleted Successfully!"); } catch (Exception ex) { KCDFAlert.ShowAlert(ex.Message); } }