//delete Data from Locations Table public string DeleteData(Locations LOCbject) { string Update; try { string SqlQuery = "Delete Locations Where ID=" + LOCbject.ID; Update = objAdaptor.ExecuteNonQuerynotreturn(SqlQuery); } catch (Exception) { Update = "false"; } finally { } return(Update); }