protected void btnEditarEmpleado_Click(object sender, EventArgs e) { // código para editar empleado Empleado myEmpleado = new Empleado(); myEmpleado.Codigo = txtCodigo.Text; myEmpleado.Nombre = txtNombre.Text; myEmpleado.Apellido = txtApellido.Text; myEmpleado.Cargo = txtCargo.Text; myEmpleado.Salario = txtSalario.Text; myEmpleado.Area = txtArea.Text; myEmpleado.Ciudad = txtCiudad.Text; if (datos.editarEmpleado(myEmpleado)) { LabelRta.Text = "El Registro Fue Actualizado Correctamente"; } else { LabelRta.Text = "El error al actualizar" + datos.error; } }