/* Delete additional service */ protected void btnDelete_Click(object sender, EventArgs e) { string StrAdditionalServiceID = Utility.GetCheckedRow(gdvAdditionalServices, "chkSelect"); if (StrAdditionalServiceID != "") { StoreFront ObjStoreFront = new StoreFront(); int Count = ObjStoreFront.DeleteAdditionalServices(StrAdditionalServiceID); if (Count == 0) { ErrMessage("Service(s) in use. It cannot be deleted unless all references to it are deleted"); } else { SuccesfullMessage("Service(s) deleted successfully."); } } BindGrid(); }