private void btnSubmit_Click(object sender, EventArgs e) { //Gather information stored in var temp, store Pet temp = new Pet(); //Getting the strings from Pet and setting in an Object temp.FName = txtFName.Text; temp.Gender = txtGender.Text; temp.Species = txtSpecies.Text; temp.Breed = txtBreed.Text; temp.Color = txtColor.Text; temp.Age = txtAge.Text; temp.DOB = txtDOB.Value; temp.Weight = txtWeight.Text; temp.Intact = txtIntact.Text; temp.Vaccinated = txtVacs.Text; temp.Rabies = txtRabies.Text; temp.Microchip = txtMicroC.Text; temp.Medications = txtMeds.Text; temp.Veterinarian = txtVet.Text; //-----Output what was stored take from txt box put in variable,print lblFeedback.Text = temp.FName + " " + temp.Gender + " " + temp.Species + "\n" + temp.Breed + " " + temp.Color + "\n" + temp.Age + " " + temp.DOB + ", " + temp.Weight + "\n" + temp.Intact + "\n" + temp.Vaccinated + "\n" + temp.Rabies + "\n" + temp.Microchip + "\n" + temp.Medications + "\n" + temp.Veterinarian; if (!temp.Feedback.Contains("INVALID")) { lblFeedback.Text = temp.AddARecord(); //if no errors weh setting values, then perform the insertion into db } else { lblFeedback.Text = temp.Feedback; //else...dispay the error msg } }//End btn Submit