protected void BtnBorrarEmpleado_Click(object sender, EventArgs e) { if (datos.EliminarEmpleadoBD(InCodigo.Text)) { LabelRta.Text = "El registro fue borrado correctamente."; LimpiarCampos(); } else { LabelRta.Text = "Error al borrar " + datos.error; } }
protected void btnBorrarEmpleado_Click(object sender, EventArgs e) { // codigo para eliminar el empleado if (datos.EliminarEmpleadoBD(InCodigo.Text)) { LabelRta.Text = "El registro fue borrado correctamente"; LimpiarCampos(); } else { LabelRta.Text = "Error al actualizar" + datos.error; } }