示例#1
0
        protected void ButtonEliminar_Click(object sender, EventArgs e)
        {
            string Id = TextBoxId.Text;

            if (PacienteDAO.Eliminar(int.Parse(Id)) == true)
            {
                LabelError.Text = "";
                LabelOk.Text    = "Bien, paciente eliminado.";
            }
            else
            {
                LabelOk.Text    = "";
                LabelError.Text = "Error, paciente no existe con ese ID";
            }
        }